pub struct Report {Show 30 fields
pub schema_version: u32,
pub package: String,
pub mutants: Option<Vec<Candidate>>,
pub analysis: Analysis,
pub audit: Option<Audit>,
pub evaluation: Option<Evaluation>,
pub interrupted: bool,
pub sites: usize,
pub skipped_sites: usize,
pub skipped: Vec<SkippedSite>,
pub unviable_mutants: usize,
pub mutants_not_built: usize,
pub mutants_not_evaluated: usize,
pub mutants_not_compiled: usize,
pub mutants_run: usize,
pub mutants_killed: usize,
pub mutants_timed_out: usize,
pub mutants_survived: usize,
pub survivor_breakdown: SurvivorBreakdown,
pub timeout_rechecks: TimeoutRechecks,
pub wrapper_grace_outcomes: Option<WrapperGraceOutcomes>,
pub findings: Vec<Finding>,
pub suppressed: usize,
pub checkpoint_reused: usize,
pub baseline: Option<PathBuf>,
pub unassessed_test_changes: Vec<String>,
pub unreached: Vec<Location>,
pub unreached_files: Vec<String>,
pub unstable: Vec<Location>,
pub weakened: Vec<Location>,
}Fields§
§schema_version: u32§package: String§mutants: Option<Vec<Candidate>>§analysis: Analysis§audit: Option<Audit>Present when the run was asked to check itself.
evaluation: Option<Evaluation>§interrupted: boolTrue when the run was stopped early by SIGINT or SIGTERM and only
already-completed outcomes are included.
sites: usize§skipped_sites: usizeSites that could not be instrumented (the probe did not compile there).
skipped: Vec<SkippedSite>§unviable_mutants: usizeValues a function’s body was to be replaced by that do not have its type
(Default::default() for a type without a default): those mutants do not exist.
mutants_not_built: usizeMutants that need a build of their own and were not asked for (--rebuild).
mutants_not_evaluated: usizeMutants that could not be run as what they are (a range that ends at the largest value of its type cannot be made to include it): neither killed nor survivors.
mutants_not_compiled: usizeOf those, the mutants of code that is not part of this build (another target’s
file, or a cfg the features turn off).
mutants_run: usize§mutants_killed: usize§mutants_timed_out: usizeKilled mutants that were stopped by the timeout (typically an endless loop).
This is a subset of mutants_killed.
mutants_survived: usizeEvaluated mutants that passed the tests (mutants_run - mutants_killed).
survivor_breakdown: SurvivorBreakdownComplete accounting of mutants_survived by disposition.
timeout_rechecks: TimeoutRechecks§wrapper_grace_outcomes: Option<WrapperGraceOutcomes>Unix --wrapper-grace timeout outcomes when --test-wrapper is configured.
findings: Vec<Finding>§suppressed: usizeFindings left out because of a // tmt:ignore comment or the baseline.
checkpoint_reused: usizeNumber of candidate outcomes reused from a --checkpoint file during this run.
baseline: Option<PathBuf>Path to the baseline file applied during this run, if any.
unassessed_test_changes: Vec<String>Integration test files changed since --since whose weakening was not evaluated
because --since scopes mutations to changed production files.
unreached: Vec<Location>Code no test executes.
unreached_files: Vec<String>Files where every instrumented site was unreached by tests.
unstable: Vec<Location>Survivors predicted from the trace that a re-run killed: the tests are not deterministic.
weakened: Vec<Location>Findings in code that did not change, of a file whose tests did (--since): the
tests as they were at the revision found these mutants out.
Implementations§
Source§impl Report
impl Report
Sourcepub fn counts_reconcile(&self) -> bool
pub fn counts_reconcile(&self) -> bool
Whether the mutant counts are internally consistent:
mutants_run == mutants_killed + mutants_survivedmutants_timed_out <= mutants_killedmutants_survived == survivor_breakdown.checked_total()
Sourcepub fn sort_findings(&mut self)
pub fn sort_findings(&mut self)
Puts the findings in reading order. Sites are numbered as they are discovered, and a statement is discovered before the expressions of the statements above it.
Sourcepub fn is_weakened(&self, at: &Location) -> bool
pub fn is_weakened(&self, at: &Location) -> bool
Whether at matches a weakened-test location from --since.
Sourcepub fn likely_equivalent_count(&self) -> usize
pub fn likely_equivalent_count(&self) -> usize
Number of findings annotated as statically likely_equivalent.
Sourcepub fn is_likely_equivalent_ignorable(&self, finding: &Finding) -> bool
pub fn is_likely_equivalent_ignorable(&self, finding: &Finding) -> bool
Whether a finding may be excluded from the exit-code gate under
--ignore-likely-equivalent. Weakened tests and bundled multi-edit findings
are never ignorable.
Sourcepub fn has_gaps(&self) -> bool
pub fn has_gaps(&self) -> bool
Whether the run found something to act on: a gap, an unstable prediction, or an audit discrepancy (which means the report cannot be trusted as it stands).
Sourcepub fn has_gaps_with_options(&self, ignore_likely_equivalent: bool) -> bool
pub fn has_gaps_with_options(&self, ignore_likely_equivalent: bool) -> bool
Like Report::has_gaps, optionally excluding single-edit non-weakened
likely_equivalent findings from the exit-code gate.