pub struct CoverageStats {
pub lines_total: usize,
pub lines_covered: usize,
pub lines_missed: usize,
pub line_coverage_percent: f64,
pub branches_total: Option<usize>,
pub branches_covered: Option<usize>,
pub branch_coverage_percent: Option<f64>,
pub files: HashMap<String, FileCoverageStats>,
}Fields§
§lines_total: usize§lines_covered: usize§lines_missed: usize§line_coverage_percent: f64§branches_total: Option<usize>§branches_covered: Option<usize>§branch_coverage_percent: Option<f64>§files: HashMap<String, FileCoverageStats>Implementations§
Source§impl CoverageStats
impl CoverageStats
pub fn new() -> Self
pub fn calculate_percentages(&mut self)
pub fn merge(&mut self, other: &CoverageStats)
Trait Implementations§
Source§impl Clone for CoverageStats
impl Clone for CoverageStats
Source§fn clone(&self) -> CoverageStats
fn clone(&self) -> CoverageStats
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 CoverageStats
impl Debug for CoverageStats
Source§impl Default for CoverageStats
impl Default for CoverageStats
Source§impl<'de> Deserialize<'de> for CoverageStats
impl<'de> Deserialize<'de> for CoverageStats
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 CoverageStats
impl RefUnwindSafe for CoverageStats
impl Send for CoverageStats
impl Sync for CoverageStats
impl Unpin for CoverageStats
impl UnwindSafe for CoverageStats
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