pub enum Outcome<'o> {
Ignored,
Passed,
Failed {
reason: Option<&'o str>,
},
Aborted {
reason: Option<&'o str>,
},
Skipped,
}Expand description
Represents the outcome of a particular test.
§Ignored
The test was ignored and didn’t run.
§Passed
The test passed without any problem.
§Failed
The test didn’t pass or an error occurred during its run.
If msg is provided, a custom message will be added to be shown on the screen.
You may find more details in reason if present.
§Aborted
The test was aborted for some reason.
This is usually a sign that the test isn’t parsable by Substance.
You may find more details in reason if present.
§Skipped
The test wasn’t able to run because the previous one was aborted.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<'o> Freeze for Outcome<'o>
impl<'o> RefUnwindSafe for Outcome<'o>
impl<'o> Send for Outcome<'o>
impl<'o> Sync for Outcome<'o>
impl<'o> Unpin for Outcome<'o>
impl<'o> UnwindSafe for Outcome<'o>
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