Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PackageCoverage ¶
type PackageCoverage struct {
PackagePath string `json:"package_path"`
Coverage float64 `json:"coverage"` // Percentage (0-100)
Error string `json:"error"` // Empty if successful
Skipped bool `json:"skipped"` // True if no tests found
}
PackageCoverage represents coverage data for a single package
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner executes go test -cover for packages
func (*Runner) RunCoverage ¶
func (r *Runner) RunCoverage(projectPath string, excludePatterns []string) ([]*PackageCoverage, error)
RunCoverage executes tests and extracts coverage for all packages in projectPath
Click to show internal directories.
Click to hide internal directories.