consolereporter

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2026 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleReporter

type ConsoleReporter struct {
	// contains filtered or unexported fields
}

func New

func New(
	logger ditto.Logger,
	differ gomutatedfile.Differ,
	calculator ditto.ScoreCalculator,
	minimumThreshold float32,
) *ConsoleReporter

func (*ConsoleReporter) AddDiagnostic

func (r *ConsoleReporter) AddDiagnostic(diagnostic *ditto.Diagnostic)

func (*ConsoleReporter) Summarize

func (r *ConsoleReporter) Summarize() result.Result[any]

func (*ConsoleReporter) Total added in v0.10.0

func (r *ConsoleReporter) Total() int

Total is how many mutants the last Summarize scored. It is read through an optional interface, the way the temporary directory's RemoveAll and the gated laboratory's counters are, so no reporter is forced to answer.

func (*ConsoleReporter) Unmeasured added in v0.12.0

func (r *ConsoleReporter) Unmeasured() int

Unmeasured is how many mutants the last Summarize left out because the test command does not compile the package that owns them.

It is a separate count from Total for the reason the exclusion exists: those mutants are not a smaller denominator to read a score against, they are the part of the scope this run could not measure. The run fails on a non-zero count whatever the score says, and the exit code is how a gate hears it.

Jump to

Keyboard shortcuts

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