Documentation
¶
Overview ¶
Package cmd implements the CLI commands for TestGen.
This package uses Cobra for command-line parsing and Viper for configuration management, providing a hierarchical command structure:
- testgen generate: Generate tests for source files
- testgen validate: Validate existing tests and coverage
- testgen analyze: Analyze codebase for cost estimation
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is set at build time via ldflags // -ldflags="-X github.com/princepal9120/testgen-cli/cmd.Version=v1.0.0" Version = "dev" )
Functions ¶
Types ¶
type AnalysisResult ¶
type AnalysisResult struct {
Path string `json:"path"`
TotalFiles int `json:"total_files"`
TotalFunctions int `json:"total_functions"`
TotalLines int `json:"total_lines"`
ByLanguage map[string]LangStats `json:"by_language"`
EstimatedTokens int `json:"estimated_tokens,omitempty"`
EstimatedCost float64 `json:"estimated_cost_usd,omitempty"`
Files []FileAnalysis `json:"files,omitempty"`
}
type FileAnalysis ¶
Click to show internal directories.
Click to hide internal directories.