pub struct CoverageReport {
pub total_lines: u64,
pub covered_lines: u64,
pub total_branches: u64,
pub covered_branches: u64,
pub function_coverage: Vec<(String, bool)>,
}Fields§
§total_lines: u64§covered_lines: u64§total_branches: u64§covered_branches: u64§function_coverage: Vec<(String, bool)>Implementations§
Source§impl CoverageReport
impl CoverageReport
pub fn new() -> Self
pub fn line_coverage_pct(&self) -> f64
pub fn branch_coverage_pct(&self) -> f64
pub fn function_coverage_pct(&self) -> f64
pub fn add_function(&mut self, name: impl Into<String>, covered: bool)
pub fn summary(&self) -> String
Auto Trait Implementations§
impl Freeze for CoverageReport
impl RefUnwindSafe for CoverageReport
impl Send for CoverageReport
impl Sync for CoverageReport
impl Unpin for CoverageReport
impl UnsafeUnpin for CoverageReport
impl UnwindSafe for CoverageReport
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