mocks

package
v2.16.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Indexer

type Indexer struct {
	mock.Mock
}

Indexer is an autogenerated mock type for the Indexer type

func NewIndexer added in v2.3.0

func NewIndexer(t mockConstructorTestingTNewIndexer) *Indexer

NewIndexer creates a new instance of Indexer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Indexer) Add

func (_m *Indexer) Add(t interface{}) ([]indexer.IdxAddResult, error)

Add provides a mock function with given fields: t

func (*Indexer) AddIndex

func (_m *Indexer) AddIndex(t interface{}, indexBy option.IndexBy, pkName string, entityDirName string, indexType string, bound *option.Bound, caseInsensitive bool) error

AddIndex provides a mock function with given fields: t, indexBy, pkName, entityDirName, indexType, bound, caseInsensitive

func (*Indexer) Delete

func (_m *Indexer) Delete(t interface{}) error

Delete provides a mock function with given fields: t

func (*Indexer) FindBy

func (_m *Indexer) FindBy(t interface{}, fields ...indexer.Field) ([]string, error)

FindBy provides a mock function with given fields: t, fields

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL