pub enum TestResult {
Passed {
captured: Vec<CapturedOutput>,
exec_time: Duration,
},
Benchmarked {
captured: Vec<CapturedOutput>,
exec_time: Duration,
ns_iter_summ: Summary,
mb_s: usize,
},
Failed {
panic: Box<dyn Any + Send>,
captured: Vec<CapturedOutput>,
exec_time: Duration,
},
Ignored {
captured: Vec<CapturedOutput>,
},
}Variants§
Implementations§
source§impl TestResult
impl TestResult
pub fn passed(exec_time: Duration) -> TestResult
pub fn benchmarked( exec_time: Duration, ns_iter_summ: Summary, mb_s: usize, ) -> TestResult
pub fn failed(exec_time: Duration, panic: Box<dyn Any + Send>) -> TestResult
pub fn ignored() -> TestResult
Trait Implementations§
source§impl From<SerializableTestResult> for TestResult
impl From<SerializableTestResult> for TestResult
source§fn from(result: SerializableTestResult) -> TestResult
fn from(result: SerializableTestResult) -> TestResult
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TestResult
impl !RefUnwindSafe for TestResult
impl Send for TestResult
impl !Sync for TestResult
impl Unpin for TestResult
impl !UnwindSafe for TestResult
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