#[non_exhaustive]pub struct CoverageRecord {
pub file: String,
pub line: u32,
pub ef: u32,
pub ep: u32,
pub nf: u32,
pub np: u32,
}Expand description
Coverage data for a single line in a source file.
Field naming follows standard SBFL notation:
ef / ep = failing / passing tests that execute the line;
nf / np = failing / passing tests that do not execute the line.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.file: StringFile path.
line: u32Line number.
ef: u32Number of failing tests that cover this line.
ep: u32Number of passing tests that cover this line.
nf: u32Number of failing tests that do NOT cover this line.
np: u32Number of passing tests that do NOT cover this line.
Implementations§
Auto Trait Implementations§
impl Freeze for CoverageRecord
impl RefUnwindSafe for CoverageRecord
impl Send for CoverageRecord
impl Sync for CoverageRecord
impl Unpin for CoverageRecord
impl UnsafeUnpin for CoverageRecord
impl UnwindSafe for CoverageRecord
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