mocks

package
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 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(ctx context.Context, query *search.Query, indexID string) bool

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

func (*MockIndex) Remove

func (_m *MockIndex) Remove(_a0 context.Context, _a1 modelsearch.Indexed) error

Remove provides a mock function with given fields: _a0, _a1

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(ctx context.Context, Labels map[string]string) []string

Select provides a mock function with given fields: ctx, Labels

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

func (*MockIndex) Upsert

func (_m *MockIndex) Upsert(_a0 context.Context, _a1 modelsearch.Indexed) error

Upsert provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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