Documentation
¶
Index ¶
- type MockEmbeddingSearch
- func (_mock *MockEmbeddingSearch) Clear(ctx context.Context) error
- func (_mock *MockEmbeddingSearch) Delete(ctx context.Context, postIDs []string) error
- func (_m *MockEmbeddingSearch) EXPECT() *MockEmbeddingSearch_Expecter
- func (_mock *MockEmbeddingSearch) Search(ctx context.Context, query string, opts embeddings.SearchOptions) ([]embeddings.SearchResult, error)
- func (_mock *MockEmbeddingSearch) Store(ctx context.Context, docs []embeddings.PostDocument) error
- type MockEmbeddingSearch_Clear_Call
- func (_c *MockEmbeddingSearch_Clear_Call) Return(err error) *MockEmbeddingSearch_Clear_Call
- func (_c *MockEmbeddingSearch_Clear_Call) Run(run func(ctx context.Context)) *MockEmbeddingSearch_Clear_Call
- func (_c *MockEmbeddingSearch_Clear_Call) RunAndReturn(run func(ctx context.Context) error) *MockEmbeddingSearch_Clear_Call
- type MockEmbeddingSearch_Delete_Call
- func (_c *MockEmbeddingSearch_Delete_Call) Return(err error) *MockEmbeddingSearch_Delete_Call
- func (_c *MockEmbeddingSearch_Delete_Call) Run(run func(ctx context.Context, postIDs []string)) *MockEmbeddingSearch_Delete_Call
- func (_c *MockEmbeddingSearch_Delete_Call) RunAndReturn(run func(ctx context.Context, postIDs []string) error) *MockEmbeddingSearch_Delete_Call
- type MockEmbeddingSearch_Expecter
- func (_e *MockEmbeddingSearch_Expecter) Clear(ctx interface{}) *MockEmbeddingSearch_Clear_Call
- func (_e *MockEmbeddingSearch_Expecter) Delete(ctx interface{}, postIDs interface{}) *MockEmbeddingSearch_Delete_Call
- func (_e *MockEmbeddingSearch_Expecter) Search(ctx interface{}, query interface{}, opts interface{}) *MockEmbeddingSearch_Search_Call
- func (_e *MockEmbeddingSearch_Expecter) Store(ctx interface{}, docs interface{}) *MockEmbeddingSearch_Store_Call
- type MockEmbeddingSearch_Search_Call
- func (_c *MockEmbeddingSearch_Search_Call) Return(searchResults []embeddings.SearchResult, err error) *MockEmbeddingSearch_Search_Call
- func (_c *MockEmbeddingSearch_Search_Call) Run(run func(ctx context.Context, query string, opts embeddings.SearchOptions)) *MockEmbeddingSearch_Search_Call
- func (_c *MockEmbeddingSearch_Search_Call) RunAndReturn(...) *MockEmbeddingSearch_Search_Call
- type MockEmbeddingSearch_Store_Call
- func (_c *MockEmbeddingSearch_Store_Call) Return(err error) *MockEmbeddingSearch_Store_Call
- func (_c *MockEmbeddingSearch_Store_Call) Run(run func(ctx context.Context, docs []embeddings.PostDocument)) *MockEmbeddingSearch_Store_Call
- func (_c *MockEmbeddingSearch_Store_Call) RunAndReturn(run func(ctx context.Context, docs []embeddings.PostDocument) error) *MockEmbeddingSearch_Store_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockEmbeddingSearch ¶
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 (_m *MockEmbeddingSearch) EXPECT() *MockEmbeddingSearch_Expecter
func (*MockEmbeddingSearch) Search ¶
func (_mock *MockEmbeddingSearch) Search(ctx context.Context, query string, opts embeddings.SearchOptions) ([]embeddings.SearchResult, error)
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 ¶
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 (_c *MockEmbeddingSearch_Clear_Call) Return(err error) *MockEmbeddingSearch_Clear_Call
func (*MockEmbeddingSearch_Clear_Call) Run ¶
func (_c *MockEmbeddingSearch_Clear_Call) Run(run func(ctx context.Context)) *MockEmbeddingSearch_Clear_Call
func (*MockEmbeddingSearch_Clear_Call) RunAndReturn ¶
func (_c *MockEmbeddingSearch_Clear_Call) RunAndReturn(run func(ctx context.Context) error) *MockEmbeddingSearch_Clear_Call
type MockEmbeddingSearch_Delete_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 (_c *MockEmbeddingSearch_Delete_Call) Return(err error) *MockEmbeddingSearch_Delete_Call
func (*MockEmbeddingSearch_Delete_Call) Run ¶
func (_c *MockEmbeddingSearch_Delete_Call) Run(run func(ctx context.Context, postIDs []string)) *MockEmbeddingSearch_Delete_Call
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 ¶
func (_e *MockEmbeddingSearch_Expecter) Clear(ctx interface{}) *MockEmbeddingSearch_Clear_Call
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 ¶
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 (_c *MockEmbeddingSearch_Search_Call) Return(searchResults []embeddings.SearchResult, err error) *MockEmbeddingSearch_Search_Call
func (*MockEmbeddingSearch_Search_Call) Run ¶
func (_c *MockEmbeddingSearch_Search_Call) Run(run func(ctx context.Context, query string, opts embeddings.SearchOptions)) *MockEmbeddingSearch_Search_Call
func (*MockEmbeddingSearch_Search_Call) RunAndReturn ¶
func (_c *MockEmbeddingSearch_Search_Call) RunAndReturn(run func(ctx context.Context, query string, opts embeddings.SearchOptions) ([]embeddings.SearchResult, error)) *MockEmbeddingSearch_Search_Call
type MockEmbeddingSearch_Store_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 (_c *MockEmbeddingSearch_Store_Call) Return(err error) *MockEmbeddingSearch_Store_Call
func (*MockEmbeddingSearch_Store_Call) Run ¶
func (_c *MockEmbeddingSearch_Store_Call) Run(run func(ctx context.Context, docs []embeddings.PostDocument)) *MockEmbeddingSearch_Store_Call
func (*MockEmbeddingSearch_Store_Call) RunAndReturn ¶
func (_c *MockEmbeddingSearch_Store_Call) RunAndReturn(run func(ctx context.Context, docs []embeddings.PostDocument) error) *MockEmbeddingSearch_Store_Call