Documentation ¶
Index ¶
- type MockIndex
- func (_m *MockIndex) Matches(query *search.Query, indexID string) bool
- func (_m *MockIndex) Remove(_a0 modelsearch.Indexed) error
- func (_m *MockIndex) Search(ctx context.Context, query *search.Query) ([]string, error)
- func (_m *MockIndex) Select(Labels map[string]string) []string
- func (_m *MockIndex) Suggestions(query *search.Query) ([]*search.Suggestion, error)
- func (_m *MockIndex) Upsert(_a0 modelsearch.Indexed) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIndex ¶
MockIndex is an autogenerated mock type for the Index type
func NewMockIndex ¶
NewMockIndex creates a new instance of MockIndex. 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 (*MockIndex) Remove ¶
func (_m *MockIndex) Remove(_a0 modelsearch.Indexed) error
Remove provides a mock function with given fields: _a0
func (*MockIndex) Suggestions ¶
Suggestions provides a mock function with given fields: query
Click to show internal directories.
Click to hide internal directories.