pub struct FuzzStats {
pub tests_run: usize,
pub tests_passed: usize,
pub tests_failed: usize,
pub panics_caught: usize,
pub unique_errors: HashSet<String>,
}Expand description
Fuzz testing statistics.
Fields§
§tests_run: usizeNumber of tests run
tests_passed: usizeNumber of tests that passed
tests_failed: usizeNumber of tests that failed
panics_caught: usizeNumber of panics caught
unique_errors: HashSet<String>Unique error messages
Implementations§
Source§impl FuzzStats
impl FuzzStats
Sourcepub fn record_success(&mut self)
pub fn record_success(&mut self)
Record a successful test.
Sourcepub fn record_failure(&mut self, error: impl Into<String>)
pub fn record_failure(&mut self, error: impl Into<String>)
Record a failure.
Sourcepub fn record_panic(&mut self)
pub fn record_panic(&mut self)
Record a panic.
Sourcepub fn success_rate(&self) -> f64
pub fn success_rate(&self) -> f64
Get success rate.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FuzzStats
impl RefUnwindSafe for FuzzStats
impl Send for FuzzStats
impl Sync for FuzzStats
impl Unpin for FuzzStats
impl UnwindSafe for FuzzStats
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