pub struct CoverageReport {
pub total_commands: usize,
pub tested_commands: usize,
pub coverage_percentage: f64,
pub untested: Vec<String>,
pub most_called: Vec<CommandCalls>,
}Expand description
IPC coverage report showing which commands were exercised.
Fields§
§total_commands: usizeTotal number of registered commands.
tested_commands: usizeNumber of commands invoked at least once.
coverage_percentage: f64Coverage percentage (0.0 to 100.0).
untested: Vec<String>Commands that were never invoked during the session.
most_called: Vec<CommandCalls>Commands sorted by invocation count (descending).
Implementations§
Source§impl CoverageReport
impl CoverageReport
Sourcepub fn meets_threshold(&self, threshold_percent: f64) -> bool
pub fn meets_threshold(&self, threshold_percent: f64) -> bool
Returns true if coverage meets or exceeds the given threshold.
Sourcepub fn to_summary(&self) -> String
pub fn to_summary(&self) -> String
Formats the report for human-readable output.
Trait Implementations§
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<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