Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDSUPersistence ¶
type MockDSUPersistence struct {
LoadFunc func() (*disjoint_set.DSU, error)
SaveFunc func(dsu *disjoint_set.DSU) error
SaveCount int
LastDSU *disjoint_set.DSU
// contains filtered or unexported fields
}
MockDSUPersistence is a mock implementation of DisjointSetPersistence for testing
func (*MockDSUPersistence) Load ¶
func (m *MockDSUPersistence) Load() (*disjoint_set.DSU, error)
func (*MockDSUPersistence) Save ¶
func (m *MockDSUPersistence) Save(dsu *disjoint_set.DSU) error
type MockEmbeddingClient ¶
type MockEmbeddingClient struct {
GenerateEmbeddingFunc func(ctx context.Context, text string) ([]float32, error)
CallCount int
LastText string
// contains filtered or unexported fields
}
MockEmbeddingClient is a mock implementation of EmbeddingClient for testing
func (*MockEmbeddingClient) GenerateEmbedding ¶
type MockLLMClient ¶
type MockLLMClient struct {
ClassifyFunc func(ctx context.Context, text string) (string, error)
CallCount int
LastText string
// contains filtered or unexported fields
}
MockLLMClient is a mock implementation of LLMClient for testing
type MockVectorClient ¶
type MockVectorClient struct {
SearchFunc func(ctx context.Context, vector []float32, topK int) ([]types.VectorMatch, error)
UpsertFunc func(ctx context.Context, id string, vector []float32, metadata map[string]any) error
CallCount int
UpsertCount int
Storage map[string]struct {
Vector []float32
Metadata map[string]any
}
// contains filtered or unexported fields
}
MockVectorClient is a mock implementation of VectorClient for testing
func NewMockVectorClient ¶
func NewMockVectorClient() *MockVectorClient
func (*MockVectorClient) Search ¶
func (m *MockVectorClient) Search(ctx context.Context, vector []float32, topK int) ([]types.VectorMatch, error)
Click to show internal directories.
Click to hide internal directories.