reportmaker

package
v2.7.6 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeAgenticJSONReport

func MakeAgenticJSONReport(report models.Report, moduleRoot string) error

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

func MakeGitLabReport(report models.Report, moduleRoot string) error

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

func MakeHTMLReport(report models.Report) error

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

func MakeJSONReport(report models.Report) error

MakeJSONReport is a function for creating json report, which is based on models.Report

func MakeSummaryJSONReport

func MakeSummaryJSONReport(stats models.Stats) error

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.

Jump to

Keyboard shortcuts

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