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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)