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) 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.