Documentation ¶
Index ¶
- type MockIndex
- func (_m *MockIndex) Matches(ctx context.Context, query *search.Query, indexID string) bool
- func (_m *MockIndex) Remove(_a0 context.Context, _a1 modelsearch.Indexed) error
- func (_m *MockIndex) Search(ctx context.Context, query *search.Query) ([]string, error)
- func (_m *MockIndex) Select(ctx context.Context, Labels map[string]string) []string
- func (_m *MockIndex) Suggestions(ctx context.Context, query *search.Query) ([]*search.Suggestion, error)
- func (_m *MockIndex) Upsert(_a0 context.Context, _a1 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) Suggestions ¶
func (_m *MockIndex) Suggestions(ctx context.Context, query *search.Query) ([]*search.Suggestion, error)
Suggestions provides a mock function with given fields: ctx, query
Click to show internal directories.
Click to hide internal directories.