pub struct CertificationResults {
pub categories: Vec<CategoryResult>,
pub start_time: Instant,
pub total_duration: Duration,
}Expand description
Full certification results.
Fields§
§categories: Vec<CategoryResult>§start_time: Instant§total_duration: DurationImplementations§
Source§impl CertificationResults
impl CertificationResults
pub fn new() -> Self
Sourcepub fn run_category<F>(&mut self, _name: &'static str, f: F)where
F: FnOnce() -> CategoryResult,
pub fn run_category<F>(&mut self, _name: &'static str, f: F)where
F: FnOnce() -> CategoryResult,
Run a category and record results.
Sourcepub fn add_category(&mut self, result: CategoryResult)
pub fn add_category(&mut self, result: CategoryResult)
Add a pre-computed category result.
pub fn total_tests(&self) -> usize
pub fn total_passed(&self) -> usize
pub fn total_failed(&self) -> usize
pub fn total_skipped(&self) -> usize
pub fn all_passed(&self) -> bool
Sourcepub fn print_summary(&self)
pub fn print_summary(&self)
Print summary to stdout.
Sourcepub fn failure_report(&self) -> String
pub fn failure_report(&self) -> String
Generate detailed failure report.
Trait Implementations§
Source§impl Debug for CertificationResults
impl Debug for CertificationResults
Auto Trait Implementations§
impl Freeze for CertificationResults
impl RefUnwindSafe for CertificationResults
impl Send for CertificationResults
impl Sync for CertificationResults
impl Unpin for CertificationResults
impl UnsafeUnpin for CertificationResults
impl UnwindSafe for CertificationResults
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