report

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package report renders mutation results for humans and automation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseStatuses added in v0.8.0

func ParseStatuses(value string) ([]mutator.Status, error)

ParseStatuses validates a comma-separated list and returns statuses in triage order. An empty list selects every status.

func Write added in v0.8.0

func Write(out io.Writer, results Results, options Options) error

Write renders one complete report, then assesses the unfiltered quality gates. It neither logs nor opens files; callers own the output destination.

Types

type Options added in v0.8.0

type Options struct {
	JSON              bool
	Verbose           bool
	Color             bool
	DryRun            bool
	Statuses          []mutator.Status
	EfficacyThreshold float64
	CoverageThreshold float64
}

Options selects presentation and quality gates, never which mutants are executed.

type Results

type Results struct {
	Module  string
	Mutants []mutator.Mutator
	Elapsed time.Duration
}

Results contains all discovered mutants and the elapsed execution time.

Directories

Path Synopsis
Package internal provides the versioned JSON report schema.
Package internal provides the versioned JSON report schema.
Package output publishes reports to streams or atomically replaced files.
Package output publishes reports to streams or atomically replaced files.

Jump to

Keyboard shortcuts

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