pub struct CoverageReport {
pub total_rules: usize,
pub executed_rules: usize,
pub rule_coverage: f64,
pub path_coverage: f64,
pub execution_counts: HashMap<String, usize>,
pub unexecuted_rules: Vec<String>,
pub execution_paths: HashMap<String, HashSet<String>>,
pub data_flow_coverage: HashMap<String, HashSet<String>>,
}Expand description
Coverage report
Fields§
§total_rules: usizeTotal number of rules
executed_rules: usizeNumber of executed rules
rule_coverage: f64Rule coverage percentage
path_coverage: f64Path coverage percentage
execution_counts: HashMap<String, usize>Execution counts per rule
unexecuted_rules: Vec<String>List of unexecuted rules
execution_paths: HashMap<String, HashSet<String>>Execution paths
data_flow_coverage: HashMap<String, HashSet<String>>Data flow coverage
Implementations§
Source§impl CoverageReport
impl CoverageReport
Sourcepub fn overall_coverage(&self) -> f64
pub fn overall_coverage(&self) -> f64
Get overall coverage percentage
Sourcepub fn to_string_report(&self) -> String
pub fn to_string_report(&self) -> String
Generate human-readable report
Sourcepub fn get_grade(&self) -> CoverageGrade
pub fn get_grade(&self) -> CoverageGrade
Get coverage grade
Trait Implementations§
Source§impl Clone for CoverageReport
impl Clone for CoverageReport
Auto Trait Implementations§
impl Freeze for CoverageReport
impl RefUnwindSafe for CoverageReport
impl Send for CoverageReport
impl Sync for CoverageReport
impl Unpin for CoverageReport
impl UnsafeUnpin for CoverageReport
impl UnwindSafe for CoverageReport
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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