pub struct MutationFunctionResult {
pub file: String,
pub name: Option<String>,
pub line: Option<u32>,
pub end_line: Option<u32>,
pub in_diff: bool,
pub cyclomatic: Option<u16>,
pub counts: MutationStatusCounts,
pub score: Option<f64>,
pub survived: Vec<String>,
}Expand description
The results of the mutants of one function.
Fields§
§file: StringThe root-relative path, with forward slashes.
name: Option<String>The function name. null for code outside each function, and for an
anonymous function.
line: Option<u32>The 1-based first line. null for code outside each function.
end_line: Option<u32>The 1-based last line. null for code outside each function.
in_diff: boolTrue when an added line of the diff is in the function.
cyclomatic: Option<u16>The cyclomatic complexity, when the analysis measured the function.
counts: MutationStatusCountsThe number of mutants for each status.
score: Option<f64>The mutation score of the function.
survived: Vec<String>The ids of the survived mutants, in rank order.
Trait Implementations§
Source§impl Clone for MutationFunctionResult
impl Clone for MutationFunctionResult
Source§impl Debug for MutationFunctionResult
impl Debug for MutationFunctionResult
Source§impl PartialEq for MutationFunctionResult
impl PartialEq for MutationFunctionResult
Source§impl Serialize for MutationFunctionResult
impl Serialize for MutationFunctionResult
impl StructuralPartialEq for MutationFunctionResult
Auto Trait Implementations§
impl Freeze for MutationFunctionResult
impl RefUnwindSafe for MutationFunctionResult
impl Send for MutationFunctionResult
impl Sync for MutationFunctionResult
impl Unpin for MutationFunctionResult
impl UnsafeUnpin for MutationFunctionResult
impl UnwindSafe for MutationFunctionResult
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