Documentation
¶
Index ¶
- type TestFramework
- func (tf *TestFramework) GetAllTestSuites() map[string]*TestSuite
- func (tf *TestFramework) GetTestSuite(name string) (*TestSuite, bool)
- func (tf *TestFramework) RunAllTests(ctx context.Context, projectPath string) map[string]*TestSuite
- func (tf *TestFramework) RunAnalysisTests(ctx context.Context, testProjectPath string) *TestSuite
- func (tf *TestFramework) RunEmbeddingsTests(ctx context.Context) *TestSuite
- func (tf *TestFramework) RunPerformanceTests(ctx context.Context) *TestSuite
- func (tf *TestFramework) RunSchemaValidationTests(ctx context.Context) *TestSuite
- type TestResult
- type TestSuite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestFramework ¶
type TestFramework struct {
// contains filtered or unexported fields
}
TestFramework provides comprehensive testing capabilities
func NewTestFramework ¶
func NewTestFramework(logger logger.Logger) *TestFramework
NewTestFramework creates a new test framework
func (*TestFramework) GetAllTestSuites ¶
func (tf *TestFramework) GetAllTestSuites() map[string]*TestSuite
GetAllTestSuites returns all test suites
func (*TestFramework) GetTestSuite ¶
func (tf *TestFramework) GetTestSuite(name string) (*TestSuite, bool)
GetTestSuite returns a specific test suite
func (*TestFramework) RunAllTests ¶
RunAllTests runs all available test suites
func (*TestFramework) RunAnalysisTests ¶
func (tf *TestFramework) RunAnalysisTests(ctx context.Context, testProjectPath string) *TestSuite
RunAnalysisTests runs project analysis tests
func (*TestFramework) RunEmbeddingsTests ¶
func (tf *TestFramework) RunEmbeddingsTests(ctx context.Context) *TestSuite
RunEmbeddingsTests runs comprehensive embeddings system tests
func (*TestFramework) RunPerformanceTests ¶
func (tf *TestFramework) RunPerformanceTests(ctx context.Context) *TestSuite
RunPerformanceTests runs performance and memory tests
func (*TestFramework) RunSchemaValidationTests ¶
func (tf *TestFramework) RunSchemaValidationTests(ctx context.Context) *TestSuite
RunSchemaValidationTests runs JSON schema validation tests
type TestResult ¶
type TestResult struct {
Name string `json:"name"`
Success bool `json:"success"`
Duration time.Duration `json:"duration"`
Error error `json:"error,omitempty"`
Message string `json:"message,omitempty"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
}
TestResult represents the result of a test
type TestSuite ¶
type TestSuite struct {
Name string `json:"name"`
Description string `json:"description"`
Tests []TestResult `json:"tests"`
Duration time.Duration `json:"duration"`
Passed int `json:"passed"`
Failed int `json:"failed"`
Total int `json:"total"`
}
TestSuite represents a collection of related tests
Click to show internal directories.
Click to hide internal directories.