Documentation ¶
Index ¶
- type Indexer
- func (_m *Indexer) Add(t interface{}) ([]indexer.IdxAddResult, error)
- func (_m *Indexer) AddIndex(t interface{}, indexBy option.IndexBy, pkName string, entityDirName string, ...) error
- func (_m *Indexer) Delete(t interface{}) error
- func (_m *Indexer) EXPECT() *Indexer_Expecter
- func (_m *Indexer) FindBy(t interface{}, fields ...indexer.Field) ([]string, error)
- type Indexer_AddIndex_Call
- type Indexer_Add_Call
- type Indexer_Delete_Call
- type Indexer_Expecter
- func (_e *Indexer_Expecter) Add(t interface{}) *Indexer_Add_Call
- func (_e *Indexer_Expecter) AddIndex(t interface{}, indexBy interface{}, pkName interface{}, ...) *Indexer_AddIndex_Call
- func (_e *Indexer_Expecter) Delete(t interface{}) *Indexer_Delete_Call
- func (_e *Indexer_Expecter) FindBy(t interface{}, fields ...interface{}) *Indexer_FindBy_Call
- type Indexer_FindBy_Call
- func (_c *Indexer_FindBy_Call) Return(_a0 []string, _a1 error) *Indexer_FindBy_Call
- func (_c *Indexer_FindBy_Call) Run(run func(t interface{}, fields ...indexer.Field)) *Indexer_FindBy_Call
- func (_c *Indexer_FindBy_Call) RunAndReturn(run func(interface{}, ...indexer.Field) ([]string, error)) *Indexer_FindBy_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Indexer ¶
Indexer is an autogenerated mock type for the Indexer type
func NewIndexer ¶ added in v2.3.0
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) EXPECT ¶ added in v2.19.6
func (_m *Indexer) EXPECT() *Indexer_Expecter
type Indexer_AddIndex_Call ¶ added in v2.19.6
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 (_c *Indexer_AddIndex_Call) Return(_a0 error) *Indexer_AddIndex_Call
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
type Indexer_Add_Call ¶ added in v2.19.6
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 (_c *Indexer_Add_Call) Return(_a0 []indexer.IdxAddResult, _a1 error) *Indexer_Add_Call
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
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 (_c *Indexer_Delete_Call) Return(_a0 error) *Indexer_Delete_Call
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
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