pub struct CoverageAccumulator { /* private fields */ }Expand description
Accumulates coverage across multiple runs. Used by Soleno to track total coverage during exploration.
Implementations§
Source§impl CoverageAccumulator
impl CoverageAccumulator
pub fn new() -> Self
Sourcepub fn add_run(&mut self, report: &CoverageReport) -> u32
pub fn add_run(&mut self, report: &CoverageReport) -> u32
Add a new run’s coverage. Returns the number of NEW offsets.
Sourcepub fn total_covered(&self) -> u32
pub fn total_covered(&self) -> u32
Total unique offsets covered across all runs.
Sourcepub fn total_runs(&self) -> u64
pub fn total_runs(&self) -> u64
Number of runs accumulated.
Sourcepub fn coverage_ratio(&self) -> f64
pub fn coverage_ratio(&self) -> f64
Coverage ratio.
Trait Implementations§
Source§impl Clone for CoverageAccumulator
impl Clone for CoverageAccumulator
Source§fn clone(&self) -> CoverageAccumulator
fn clone(&self) -> CoverageAccumulator
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 CoverageAccumulator
impl Debug for CoverageAccumulator
Source§impl Default for CoverageAccumulator
impl Default for CoverageAccumulator
Source§fn default() -> CoverageAccumulator
fn default() -> CoverageAccumulator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CoverageAccumulator
impl RefUnwindSafe for CoverageAccumulator
impl Send for CoverageAccumulator
impl Sync for CoverageAccumulator
impl Unpin for CoverageAccumulator
impl UnsafeUnpin for CoverageAccumulator
impl UnwindSafe for CoverageAccumulator
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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