mocks

package
v2.19.6 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

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) EXPECT added in v2.19.6

func (_m *Indexer) EXPECT() *Indexer_Expecter

func (*Indexer) FindBy

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

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

type Indexer_AddIndex_Call added in v2.19.6

type Indexer_AddIndex_Call struct {
	*mock.Call
}

Indexer_AddIndex_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddIndex'

func (*Indexer_AddIndex_Call) Return added in v2.19.6

func (*Indexer_AddIndex_Call) Run added in v2.19.6

func (_c *Indexer_AddIndex_Call) Run(run func(t interface{}, indexBy option.IndexBy, pkName string, entityDirName string, indexType string, bound *option.Bound, caseInsensitive bool)) *Indexer_AddIndex_Call

func (*Indexer_AddIndex_Call) RunAndReturn added in v2.19.6

func (_c *Indexer_AddIndex_Call) RunAndReturn(run func(interface{}, option.IndexBy, string, string, string, *option.Bound, bool) error) *Indexer_AddIndex_Call

type Indexer_Add_Call added in v2.19.6

type Indexer_Add_Call struct {
	*mock.Call
}

Indexer_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'

func (*Indexer_Add_Call) Return added in v2.19.6

func (*Indexer_Add_Call) Run added in v2.19.6

func (_c *Indexer_Add_Call) Run(run func(t interface{})) *Indexer_Add_Call

func (*Indexer_Add_Call) RunAndReturn added in v2.19.6

func (_c *Indexer_Add_Call) RunAndReturn(run func(interface{}) ([]indexer.IdxAddResult, error)) *Indexer_Add_Call

type Indexer_Delete_Call added in v2.19.6

type Indexer_Delete_Call struct {
	*mock.Call
}

Indexer_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*Indexer_Delete_Call) Return added in v2.19.6

func (*Indexer_Delete_Call) Run added in v2.19.6

func (_c *Indexer_Delete_Call) Run(run func(t interface{})) *Indexer_Delete_Call

func (*Indexer_Delete_Call) RunAndReturn added in v2.19.6

func (_c *Indexer_Delete_Call) RunAndReturn(run func(interface{}) error) *Indexer_Delete_Call

type Indexer_Expecter added in v2.19.6

type Indexer_Expecter struct {
	// contains filtered or unexported fields
}

func (*Indexer_Expecter) Add added in v2.19.6

func (_e *Indexer_Expecter) Add(t interface{}) *Indexer_Add_Call

Add is a helper method to define mock.On call

  • t interface{}

func (*Indexer_Expecter) AddIndex added in v2.19.6

func (_e *Indexer_Expecter) AddIndex(t interface{}, indexBy interface{}, pkName interface{}, entityDirName interface{}, indexType interface{}, bound interface{}, caseInsensitive interface{}) *Indexer_AddIndex_Call

AddIndex is a helper method to define mock.On call

  • t interface{}
  • indexBy option.IndexBy
  • pkName string
  • entityDirName string
  • indexType string
  • bound *option.Bound
  • caseInsensitive bool

func (*Indexer_Expecter) Delete added in v2.19.6

func (_e *Indexer_Expecter) Delete(t interface{}) *Indexer_Delete_Call

Delete is a helper method to define mock.On call

  • t interface{}

func (*Indexer_Expecter) FindBy added in v2.19.6

func (_e *Indexer_Expecter) FindBy(t interface{}, fields ...interface{}) *Indexer_FindBy_Call

FindBy is a helper method to define mock.On call

  • t interface{}
  • fields ...indexer.Field

type Indexer_FindBy_Call added in v2.19.6

type Indexer_FindBy_Call struct {
	*mock.Call
}

Indexer_FindBy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindBy'

func (*Indexer_FindBy_Call) Return added in v2.19.6

func (_c *Indexer_FindBy_Call) Return(_a0 []string, _a1 error) *Indexer_FindBy_Call

func (*Indexer_FindBy_Call) Run added in v2.19.6

func (_c *Indexer_FindBy_Call) Run(run func(t interface{}, fields ...indexer.Field)) *Indexer_FindBy_Call

func (*Indexer_FindBy_Call) RunAndReturn added in v2.19.6

func (_c *Indexer_FindBy_Call) RunAndReturn(run func(interface{}, ...indexer.Field) ([]string, error)) *Indexer_FindBy_Call

Jump to

Keyboard shortcuts

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