Skip to main content

Report

Struct Report 

Source
pub struct Report {
Show 26 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 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 findings: Vec<Finding>, pub suppressed: usize, pub baseline: Option<PathBuf>, pub unassessed_test_changes: Vec<String>, pub unreached: Vec<Location>, 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>§sites: usize§skipped_sites: usize

Sites that could not be instrumented (the probe did not compile there).

§skipped: Vec<SkippedSite>§unviable_mutants: usize

Values 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: usize

Mutants that need a build of their own and were not asked for (--rebuild).

§mutants_not_evaluated: usize

Mutants 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: usize

Of 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: usize

Killed mutants that were stopped by the timeout (typically an endless loop). This is a subset of mutants_killed.

§mutants_survived: usize

Evaluated mutants that passed the tests (mutants_run - mutants_killed).

§survivor_breakdown: SurvivorBreakdown

Complete accounting of mutants_survived by disposition.

§timeout_rechecks: TimeoutRechecks§findings: Vec<Finding>§suppressed: usize

Findings left out because of a // tmt:ignore comment or the baseline.

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

§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

Source

pub fn counts_reconcile(&self) -> bool

Whether the mutant counts are internally consistent:

  • mutants_run == mutants_killed + mutants_survived
  • mutants_timed_out <= mutants_killed
  • mutants_survived == survivor_breakdown.checked_total()
Source

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.

Source

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

Trait Implementations§

Source§

impl Clone for Report

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Report

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Report

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for Report

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Report

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Report

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.