package
0.0.0-20230226003218-1dd1f65bfa42
Repository: https://github.com/c4-project/c4t.git
Documentation: pkg.go.dev
# README
Mutation testing support
This package contains rudimentary support for mutation-testing compilers. At the moment, it's highly specialised to one particular test campaign using a run-time mutated LLVM, but any diversification is helpful.
# Packages
No description provided by the author
# Functions
AnonMutant creates a mutant with index i, but no name.
NamedMutant creates a named mutant with index i, operator operator and variant variant.
NewAutomator constructs a new Automator given configuration cfg.
ScanLine scans line for mutant hit and selection hints, and calls the appropriate callback.
ScanLines scans each line in r, building a map of mutant indices to hit counts.
StandardTicker gets a standard Go ticker if d is nonzero, and a no-op otherwise.
# Constants
EnvVar is the environment variable used for mutation testing.
MutantHitPrefix is the prefix of lines from compilers specifying that a mutant has been hit.
MutantSelectPrefix is the prefix of lines from compilers specifying that a mutant has been selected.
# Variables
No description provided by the author
# Structs
AutoConfig specifies configuration pertaining to automatically selecting mutants.
Automator handles most of the legwork of automating mutant selection.
AutoPool manages the next mutant to select in an automated mutation testing campaign.
Config configures a particular mutation testing campaign.
Mutant is an identifier for a particular mutant.
MutantAnalysis is the type of individual mutant analyses.
Name is a human-readable name for mutants.
Range defines an inclusive numeric range of mutant numbers to consider.
SelectionAnalysis represents one instance where a compilation selected a particular mutant.
# Interfaces
Ticker is a mockable interface for time.Ticker.