Documentation ¶
Index ¶
- type LocalSearch
- type LocalSearch_ContentById_Call
- func (_c *LocalSearch_ContentById_Call) Return(_a0 model.Content, _a1 error) *LocalSearch_ContentById_Call
- func (_c *LocalSearch_ContentById_Call) Run(run func(_a0 context.Context, _a1 model.ContentRef)) *LocalSearch_ContentById_Call
- func (_c *LocalSearch_ContentById_Call) RunAndReturn(run func(context.Context, model.ContentRef) (model.Content, error)) *LocalSearch_ContentById_Call
- type LocalSearch_ContentBySearch_Call
- type LocalSearch_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalSearch ¶
LocalSearch is an autogenerated mock type for the LocalSearch type
func NewLocalSearch ¶
func NewLocalSearch(t interface { mock.TestingT Cleanup(func()) }) *LocalSearch
NewLocalSearch creates a new instance of LocalSearch. 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 (*LocalSearch) ContentById ¶
func (_m *LocalSearch) ContentById(_a0 context.Context, _a1 model.ContentRef) (model.Content, error)
ContentById provides a mock function with given fields: _a0, _a1
func (*LocalSearch) ContentBySearch ¶
func (_m *LocalSearch) ContentBySearch(_a0 context.Context, _a1 model.ContentType, _a2 string, _a3 model.Year) (model.Content, error)
ContentBySearch provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*LocalSearch) EXPECT ¶
func (_m *LocalSearch) EXPECT() *LocalSearch_Expecter
type LocalSearch_ContentById_Call ¶
LocalSearch_ContentById_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContentById'
func (*LocalSearch_ContentById_Call) Return ¶
func (_c *LocalSearch_ContentById_Call) Return(_a0 model.Content, _a1 error) *LocalSearch_ContentById_Call
func (*LocalSearch_ContentById_Call) Run ¶
func (_c *LocalSearch_ContentById_Call) Run(run func(_a0 context.Context, _a1 model.ContentRef)) *LocalSearch_ContentById_Call
func (*LocalSearch_ContentById_Call) RunAndReturn ¶
func (_c *LocalSearch_ContentById_Call) RunAndReturn(run func(context.Context, model.ContentRef) (model.Content, error)) *LocalSearch_ContentById_Call
type LocalSearch_ContentBySearch_Call ¶
LocalSearch_ContentBySearch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContentBySearch'
func (*LocalSearch_ContentBySearch_Call) Return ¶
func (_c *LocalSearch_ContentBySearch_Call) Return(_a0 model.Content, _a1 error) *LocalSearch_ContentBySearch_Call
func (*LocalSearch_ContentBySearch_Call) Run ¶
func (_c *LocalSearch_ContentBySearch_Call) Run(run func(_a0 context.Context, _a1 model.ContentType, _a2 string, _a3 model.Year)) *LocalSearch_ContentBySearch_Call
func (*LocalSearch_ContentBySearch_Call) RunAndReturn ¶
func (_c *LocalSearch_ContentBySearch_Call) RunAndReturn(run func(context.Context, model.ContentType, string, model.Year) (model.Content, error)) *LocalSearch_ContentBySearch_Call
type LocalSearch_Expecter ¶
type LocalSearch_Expecter struct {
// contains filtered or unexported fields
}
func (*LocalSearch_Expecter) ContentById ¶
func (_e *LocalSearch_Expecter) ContentById(_a0 interface{}, _a1 interface{}) *LocalSearch_ContentById_Call
ContentById is a helper method to define mock.On call
- _a0 context.Context
- _a1 model.ContentRef
func (*LocalSearch_Expecter) ContentBySearch ¶
func (_e *LocalSearch_Expecter) ContentBySearch(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *LocalSearch_ContentBySearch_Call
ContentBySearch is a helper method to define mock.On call
- _a0 context.Context
- _a1 model.ContentType
- _a2 string
- _a3 model.Year