Struct umm::grade::MutationDiagnostic
source · pub struct MutationDiagnostic {
mutator: String,
source_method: String,
line_number: u32,
test_method: String,
result: String,
source_file_name: String,
test_file_name: String,
}
Expand description
A struct representing a PIT diagnostic message
Fields§
§mutator: String
mutator
: name of the mutator in question
source_method: String
source_method
: name of the source method being mutated
line_number: u32
line_number
: source line number where mutation occurred
test_method: String
test_method
: name of the test examined
result: String
result
: result of mutation testing
source_file_name: String
source_file_name
: name of the source file
test_file_name: String
test_file_name
: name of the test file
Implementations§
source§impl MutationDiagnostic
impl MutationDiagnostic
sourcepub fn builder() -> MutationDiagnosticBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> MutationDiagnosticBuilder<((), (), (), (), (), (), ())>
Create a builder for building MutationDiagnostic
.
On the builder, call .mutator(...)
, .source_method(...)
, .line_number(...)
, .test_method(...)
, .result(...)
, .source_file_name(...)
, .test_file_name(...)
to set the values of the fields.
Finally, call .build()
to create the instance of MutationDiagnostic
.
Trait Implementations§
source§impl Clone for MutationDiagnostic
impl Clone for MutationDiagnostic
source§fn clone(&self) -> MutationDiagnostic
fn clone(&self) -> MutationDiagnostic
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'de> Deserialize<'de> for MutationDiagnostic
impl<'de> Deserialize<'de> for MutationDiagnostic
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<MutationDiagnostic> for LineRef
impl From<MutationDiagnostic> for LineRef
source§fn from(val: MutationDiagnostic) -> Self
fn from(val: MutationDiagnostic) -> Self
Converts a MutationDiagnostic to a LineRef
source§impl Serialize for MutationDiagnostic
impl Serialize for MutationDiagnostic
source§impl Tabled for MutationDiagnostic
impl Tabled for MutationDiagnostic
Auto Trait Implementations§
impl RefUnwindSafe for MutationDiagnostic
impl Send for MutationDiagnostic
impl Sync for MutationDiagnostic
impl Unpin for MutationDiagnostic
impl UnwindSafe for MutationDiagnostic
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