pub struct CoverageSummary {
pub lines_covered: u32,
pub lines_total: u32,
pub functions_covered: u32,
pub functions_total: u32,
pub branches_covered: u32,
pub branches_total: u32,
}Expand description
Coverage summary statistics
Fields§
§lines_covered: u32§lines_total: u32§functions_covered: u32§functions_total: u32§branches_covered: u32§branches_total: u32Implementations§
Source§impl CoverageSummary
impl CoverageSummary
Sourcepub fn line_coverage(&self) -> f64
pub fn line_coverage(&self) -> f64
Calculate line coverage percentage
Sourcepub fn function_coverage(&self) -> f64
pub fn function_coverage(&self) -> f64
Calculate function coverage percentage
Sourcepub fn branch_coverage(&self) -> f64
pub fn branch_coverage(&self) -> f64
Calculate branch coverage percentage
Trait Implementations§
Source§impl Clone for CoverageSummary
impl Clone for CoverageSummary
Source§fn clone(&self) -> CoverageSummary
fn clone(&self) -> CoverageSummary
Returns a duplicate 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 Debug for CoverageSummary
impl Debug for CoverageSummary
Source§impl<'de> Deserialize<'de> for CoverageSummary
impl<'de> Deserialize<'de> for CoverageSummary
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
Auto Trait Implementations§
impl Freeze for CoverageSummary
impl RefUnwindSafe for CoverageSummary
impl Send for CoverageSummary
impl Sync for CoverageSummary
impl Unpin for CoverageSummary
impl UnwindSafe for CoverageSummary
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<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