mocks

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockEmbeddingSearch

type MockEmbeddingSearch struct {
	mock.Mock
}

MockEmbeddingSearch is an autogenerated mock type for the EmbeddingSearch type

func NewMockEmbeddingSearch

func NewMockEmbeddingSearch(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockEmbeddingSearch

NewMockEmbeddingSearch creates a new instance of MockEmbeddingSearch. 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 (*MockEmbeddingSearch) Clear

func (_mock *MockEmbeddingSearch) Clear(ctx context.Context) error

Clear provides a mock function for the type MockEmbeddingSearch

func (*MockEmbeddingSearch) Delete

func (_mock *MockEmbeddingSearch) Delete(ctx context.Context, postIDs []string) error

Delete provides a mock function for the type MockEmbeddingSearch

func (*MockEmbeddingSearch) EXPECT

func (*MockEmbeddingSearch) Search

Search provides a mock function for the type MockEmbeddingSearch

func (*MockEmbeddingSearch) Store

func (_mock *MockEmbeddingSearch) Store(ctx context.Context, docs []embeddings.PostDocument) error

Store provides a mock function for the type MockEmbeddingSearch

type MockEmbeddingSearch_Clear_Call

type MockEmbeddingSearch_Clear_Call struct {
	*mock.Call
}

MockEmbeddingSearch_Clear_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clear'

func (*MockEmbeddingSearch_Clear_Call) Return

func (*MockEmbeddingSearch_Clear_Call) Run

func (*MockEmbeddingSearch_Clear_Call) RunAndReturn

type MockEmbeddingSearch_Delete_Call

type MockEmbeddingSearch_Delete_Call struct {
	*mock.Call
}

MockEmbeddingSearch_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*MockEmbeddingSearch_Delete_Call) Return

func (*MockEmbeddingSearch_Delete_Call) Run

func (*MockEmbeddingSearch_Delete_Call) RunAndReturn

func (_c *MockEmbeddingSearch_Delete_Call) RunAndReturn(run func(ctx context.Context, postIDs []string) error) *MockEmbeddingSearch_Delete_Call

type MockEmbeddingSearch_Expecter

type MockEmbeddingSearch_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockEmbeddingSearch_Expecter) Clear

Clear is a helper method to define mock.On call

  • ctx

func (*MockEmbeddingSearch_Expecter) Delete

func (_e *MockEmbeddingSearch_Expecter) Delete(ctx interface{}, postIDs interface{}) *MockEmbeddingSearch_Delete_Call

Delete is a helper method to define mock.On call

  • ctx
  • postIDs

func (*MockEmbeddingSearch_Expecter) Search

func (_e *MockEmbeddingSearch_Expecter) Search(ctx interface{}, query interface{}, opts interface{}) *MockEmbeddingSearch_Search_Call

Search is a helper method to define mock.On call

  • ctx
  • query
  • opts

func (*MockEmbeddingSearch_Expecter) Store

func (_e *MockEmbeddingSearch_Expecter) Store(ctx interface{}, docs interface{}) *MockEmbeddingSearch_Store_Call

Store is a helper method to define mock.On call

  • ctx
  • docs

type MockEmbeddingSearch_Search_Call

type MockEmbeddingSearch_Search_Call struct {
	*mock.Call
}

MockEmbeddingSearch_Search_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Search'

func (*MockEmbeddingSearch_Search_Call) Return

func (*MockEmbeddingSearch_Search_Call) Run

func (*MockEmbeddingSearch_Search_Call) RunAndReturn

type MockEmbeddingSearch_Store_Call

type MockEmbeddingSearch_Store_Call struct {
	*mock.Call
}

MockEmbeddingSearch_Store_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Store'

func (*MockEmbeddingSearch_Store_Call) Return

func (*MockEmbeddingSearch_Store_Call) Run

func (*MockEmbeddingSearch_Store_Call) RunAndReturn

Jump to

Keyboard shortcuts

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