Documentation
¶
Index ¶
- func MakeAgenticJSONReport(report models.Report, moduleRoot string) error
- func MakeGitLabReport(report models.Report, moduleRoot string) error
- func MakeHTMLReport(report models.Report) error
- func MakeJSONReport(report models.Report) error
- func MakeSummaryJSONReport(stats models.Stats) error
- type AgenticMutant
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeAgenticJSONReport ¶
MakeAgenticJSONReport writes go-mutesting-agentic.json with enriched escaped-mutant data designed for LLM consumption: stable IDs, context lines, test file paths, mutator descriptions, and heuristic test-writing hints.
func MakeGitLabReport ¶ added in v2.6.7
MakeGitLabReport writes go-mutesting-gitlab.json in GitLab Code Quality format. Each escaped mutant becomes one issue entry. GitLab picks this up automatically when the artifact path is configured in .gitlab-ci.yml.
func MakeHTMLReport ¶
MakeHTMLReport is a function for creating an HTML report based on a stripped-down version of the models.Report model (not all fields are used)
func MakeJSONReport ¶
MakeJSONReport is a function for creating json report, which is based on models.Report
func MakeSummaryJSONReport ¶
MakeSummaryJSONReport writes a compact stats-only JSON to go-mutesting-summary.json. Useful for badge generation and CI dashboards that don't need per-mutant detail.
Types ¶
type AgenticMutant ¶
type AgenticMutant struct {
ID string `json:"id"`
File string `json:"file"`
Line int64 `json:"line"`
Mutator string `json:"mutator"`
Description string `json:"description,omitempty"`
KillHint string `json:"kill_hint,omitempty"`
Diff string `json:"diff"`
ContextStartLine int `json:"context_start_line,omitempty"`
ContextLines []string `json:"context_lines,omitempty"`
TestFiles []string `json:"test_files,omitempty"`
}
AgenticMutant describes one escaped mutant for LLM consumption.