gatedreporter

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package gatedreporter says how much of a run came from one compilation.

It exists because the gated path could stop engaging without anything saying so. `Gated` and `FellBack` are exact counters, and until this they were counters nobody printed: a run that gated every mutant and a run that gated none produced identical output, and the difference was found only by dropping a panic into `TestAll` by hand and watching it not fire. A number that is not printed is a number that cannot go wrong in front of anyone.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GatedReporter

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

func New

func New(logger ditto.Logger, gates Gates, delegate ditto.Reporter) *GatedReporter

func (*GatedReporter) AddDiagnostic

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

func (*GatedReporter) Summarize

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

Summarize reports the counts after the verdicts, because they describe how the run was executed rather than what it found. It never changes the verdict.

type Gates

type Gates interface {
	Gated() int
	FellBack() int
}

Gates is the pair of counters a gated laboratory keeps.

Jump to

Keyboard shortcuts

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