pub enum TestError<T> {
Abort(Reason),
Fail(Reason, T),
}
Expand description
A failure state from running test cases for a single test.
Variants§
Abort(Reason)
The test was aborted for the given reason, for example, due to too many inputs having been rejected.
Fail(Reason, T)
A failing test case was found. The string indicates where and/or why
the test failed. The T
is the minimal input found to reproduce the
failure.
Trait Implementations§
Source§impl<T: Debug> Error for TestError<T>
impl<T: Debug> Error for TestError<T>
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
impl<T: Eq> Eq for TestError<T>
impl<T> StructuralPartialEq for TestError<T>
Auto Trait Implementations§
impl<T> Freeze for TestError<T>where
T: Freeze,
impl<T> RefUnwindSafe for TestError<T>where
T: RefUnwindSafe,
impl<T> Send for TestError<T>where
T: Send,
impl<T> Sync for TestError<T>where
T: Sync,
impl<T> Unpin for TestError<T>where
T: Unpin,
impl<T> UnwindSafe for TestError<T>where
T: UnwindSafe,
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