pub struct MutantResult {
pub location: MutantLocation,
pub status: MutantStatus,
pub prune_reason: Option<String>,
pub killed_by: Option<String>,
pub covering_tests: Vec<String>,
pub static_mutant: bool,
pub duration_ms: Option<u64>,
pub test_reach: Option<MutantTestReach>,
pub retried: bool,
pub cached: bool,
pub type_error_codes: Vec<u32>,
}Expand description
One mutant of a run.
Fields§
§location: MutantLocationThe mutant and its position.
status: MutantStatusThe final status.
prune_reason: Option<String>The static rule of a pruned mutant, kebab-case.
killed_by: Option<String>The test that killed the mutant in this run. Absent for a kill by an error outside a test.
This is evidence of one run, not a stable fact. A run stops at the first failing test, and it runs the fastest covering test first, so a second run on the same code can name another covering test. No fingerprint or baseline comparison uses this field.
covering_tests: Vec<String>The tests that reached the mutant in the dry run, sorted by test id.
static_mutant: boolTrue when the mutant runs while a module loads, outside each test.
duration_ms: Option<u64>The duration of one run in milliseconds. A killed mutant after a
retry reports the retry. Each other status reports the first run.
test_reach: Option<MutantTestReach>How tests reach the code of the mutant in the module graph. Only a
no_coverage mutant has this field.
retried: boolTrue when the status comes from a first run and a retry in a new
companion. A survived or timeout mutant without this field got no
retry, because the time budget ended first.
cached: boolTrue when the status comes from the result cache of an earlier run.
The mutant did not run in this run. --no-cache runs each mutant.
type_error_codes: Vec<u32>The TypeScript diagnostic codes of the new errors of a
compile_error mutant, sorted, at most 8.
Trait Implementations§
Source§impl Clone for MutantResult
impl Clone for MutantResult
Source§impl Debug for MutantResult
impl Debug for MutantResult
impl Eq for MutantResult
Source§impl PartialEq for MutantResult
impl PartialEq for MutantResult
Source§impl Serialize for MutantResult
impl Serialize for MutantResult
impl StructuralPartialEq for MutantResult
Auto Trait Implementations§
impl Freeze for MutantResult
impl RefUnwindSafe for MutantResult
impl Send for MutantResult
impl Sync for MutantResult
impl Unpin for MutantResult
impl UnsafeUnpin for MutantResult
impl UnwindSafe for MutantResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.