pub struct FileCoverage {
pub lines_found: u32,
pub lines_hit: u32,
pub functions_found: u32,
pub functions_hit: u32,
pub branches_found: u32,
pub branches_hit: u32,
}Expand description
Per-file coverage metrics parsed from a coverage report.
Supported source formats (see parse_coverage_auto): LCOV .info (lcov, gcov,
cargo-llvm-cov), Cobertura XML, JaCoCo XML, Istanbul/NYC json-summary, and coverage.py
native JSON (coverage json).
Fields§
§lines_found: u32§lines_hit: u32§functions_found: u32§functions_hit: u32§branches_found: u32§branches_hit: u32Implementations§
Source§impl FileCoverage
impl FileCoverage
pub fn line_pct(&self) -> f64
pub fn function_pct(&self) -> f64
pub fn branch_pct(&self) -> f64
Trait Implementations§
Source§impl Clone for FileCoverage
impl Clone for FileCoverage
Source§fn clone(&self) -> FileCoverage
fn clone(&self) -> FileCoverage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FileCoverage
impl Debug for FileCoverage
Source§impl<'de> Deserialize<'de> for FileCoverage
impl<'de> Deserialize<'de> for FileCoverage
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 FileCoverage
impl RefUnwindSafe for FileCoverage
impl Send for FileCoverage
impl Sync for FileCoverage
impl Unpin for FileCoverage
impl UnsafeUnpin for FileCoverage
impl UnwindSafe for FileCoverage
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