pub struct TestStats {
pub total_tests: usize,
pub passed: usize,
pub failed: usize,
pub skipped: usize,
pub errors: usize,
pub total_duration: Duration,
pub average_duration: Duration,
pub coverage_percentage: f64,
}Expand description
Test statistics
Fields§
§total_tests: usize§passed: usize§failed: usize§skipped: usize§errors: usize§total_duration: Duration§average_duration: Duration§coverage_percentage: f64Implementations§
Source§impl TestStats
impl TestStats
pub fn new() -> Self
pub fn update_from_results(&mut self, results: &[TestResult])
pub fn success_rate(&self) -> f64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TestStats
impl RefUnwindSafe for TestStats
impl Send for TestStats
impl Sync for TestStats
impl Unpin for TestStats
impl UnsafeUnpin for TestStats
impl UnwindSafe for TestStats
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