mocks

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIndex

type MockIndex struct {
	mock.Mock
}

MockIndex is an autogenerated mock type for the Index type

func NewMockIndex

func NewMockIndex(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockIndex

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) Matches

func (_m *MockIndex) Matches(query *search.Query, indexID string) bool

Matches provides a mock function with given fields: query, indexID

func (*MockIndex) Remove

func (_m *MockIndex) Remove(_a0 modelsearch.Indexed) error

Remove provides a mock function with given fields: _a0

func (*MockIndex) Search

func (_m *MockIndex) Search(ctx context.Context, query *search.Query) ([]string, error)

Search provides a mock function with given fields: ctx, query

func (*MockIndex) Select

func (_m *MockIndex) Select(Labels map[string]string) []string

Select provides a mock function with given fields: Labels

func (*MockIndex) Suggestions

func (_m *MockIndex) Suggestions(query *search.Query) ([]*search.Suggestion, error)

Suggestions provides a mock function with given fields: query

func (*MockIndex) Upsert

func (_m *MockIndex) Upsert(_a0 modelsearch.Indexed) error

Upsert provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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