pub struct MutantTestReach {
pub reach: ExportTestReach,
pub export_name: Option<String>,
pub tests: Vec<String>,
pub mocked_targets: Vec<String>,
}Expand description
How tests reach the code of one mutant, from the module graph.
A mutant in the top-level statement that declares a value export gets the
class of that export. A mutant outside each such statement gets the class
of its file: none-file when no test loads the file, mocked-only when no
test loads the file and a mock explains an export of the file, and none
when a test loads the file.
Fields§
§reach: ExportTestReachThe reach class.
export_name: Option<String>The export whose declaration holds the mutant. None for a mutant
outside each value export declaration.
tests: Vec<String>For mocked-only: the test files whose references a mock removed,
sorted.
mocked_targets: Vec<String>For mocked-only: the mocked modules on the reference paths, sorted.
Trait Implementations§
Source§impl Clone for MutantTestReach
impl Clone for MutantTestReach
Source§impl Debug for MutantTestReach
impl Debug for MutantTestReach
impl Eq for MutantTestReach
Source§impl PartialEq for MutantTestReach
impl PartialEq for MutantTestReach
Source§impl Serialize for MutantTestReach
impl Serialize for MutantTestReach
impl StructuralPartialEq for MutantTestReach
Auto Trait Implementations§
impl Freeze for MutantTestReach
impl RefUnwindSafe for MutantTestReach
impl Send for MutantTestReach
impl Sync for MutantTestReach
impl Unpin for MutantTestReach
impl UnsafeUnpin for MutantTestReach
impl UnwindSafe for MutantTestReach
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
Mutably borrows from an owned value. Read more
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more