pub struct CoverageData {
pub files: BTreeMap<String, FileCoverage>,
pub format: Option<CoverageFormat>,
pub timestamp: u64,
}Expand description
Aggregated coverage data from one or more reports.
Fields§
§files: BTreeMap<String, FileCoverage>Per-file coverage, keyed by relative path.
format: Option<CoverageFormat>Source format(s) that produced this data.
timestamp: u64When the coverage was ingested (Unix timestamp).
Implementations§
Source§impl CoverageData
impl CoverageData
pub fn new() -> Self
Sourcepub fn total_coverage_pct(&self) -> Option<f64>
pub fn total_coverage_pct(&self) -> Option<f64>
Total line coverage percentage across all files.
Sourcepub fn merge(&mut self, other: &CoverageData)
pub fn merge(&mut self, other: &CoverageData)
Merge another CoverageData into this one.
Trait Implementations§
Source§impl Clone for CoverageData
impl Clone for CoverageData
Source§fn clone(&self) -> CoverageData
fn clone(&self) -> CoverageData
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 CoverageData
impl Debug for CoverageData
Auto Trait Implementations§
impl Freeze for CoverageData
impl RefUnwindSafe for CoverageData
impl Send for CoverageData
impl Sync for CoverageData
impl Unpin for CoverageData
impl UnsafeUnpin for CoverageData
impl UnwindSafe for CoverageData
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