pub struct CategoryResult {
pub name: &'static str,
pub tests: Vec<TestResult>,
pub duration: Duration,
}Expand description
Category-level result aggregation.
Fields§
§name: &'static str§tests: Vec<TestResult>§duration: DurationImplementations§
Source§impl CategoryResult
impl CategoryResult
pub fn new(name: &'static str) -> Self
pub fn add_result(&mut self, result: TestResult)
pub fn set_duration(&mut self, duration: Duration)
pub fn passed_count(&self) -> usize
pub fn failed_count(&self) -> usize
pub fn skipped_count(&self) -> usize
pub fn total_count(&self) -> usize
pub fn all_passed(&self) -> bool
Trait Implementations§
Source§impl Clone for CategoryResult
impl Clone for CategoryResult
Source§fn clone(&self) -> CategoryResult
fn clone(&self) -> CategoryResult
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 moreAuto Trait Implementations§
impl Freeze for CategoryResult
impl RefUnwindSafe for CategoryResult
impl Send for CategoryResult
impl Sync for CategoryResult
impl Unpin for CategoryResult
impl UnsafeUnpin for CategoryResult
impl UnwindSafe for CategoryResult
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