pub struct FileCoverage {
pub filename: String,
pub line_pct: f64,
pub function_pct: f64,
pub region_pct: f64,
pub total_lines: u64,
pub covered_lines: u64,
}Expand description
Coverage measurements for a single source file.
Populated only when the parent run was configured with
CoverageRun::per_file.
Fields§
§filename: StringAbsolute path emitted by cargo llvm-cov.
line_pct: f64Line coverage percentage. 0.0..=100.0.
function_pct: f64Function coverage percentage. 0.0..=100.0.
region_pct: f64Region coverage percentage. 0.0..=100.0.
total_lines: u64Total executable lines in this file.
covered_lines: u64Lines in this file exercised at least once.
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