testing

package
v0.0.0-...-a1f8bd1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

func (tf *TestFramework) RunAllTests(ctx context.Context, projectPath string) map[string]*TestSuite

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

Jump to

Keyboard shortcuts

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