pub enum TestMode {
Correct,
Strict,
Print {
filter: Vec<DimFilter>,
fail_only: bool,
},
FailIfRun,
}Variants§
Correct
Numerical errors cause the test to fail. Compilation errors are accepted (do not fail the test).
Strict
Both numerical and compilation errors cause the test to fail.
All tests can be printed according to the given filter.
fail_only = true: only tests with numerical errors are marked as failed and printed.
fail_only = false: all tests are marked as failed and printed.
FailIfRun
Fail only if the test successfully runs. Compilation failures are ignored.
Helpful to isolate relevant tests
Implementations§
Source§impl TestMode
impl TestMode
pub fn decide(&self, outcome: TestOutcome) -> TestDecision
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TestMode
impl RefUnwindSafe for TestMode
impl Send for TestMode
impl Sync for TestMode
impl Unpin for TestMode
impl UnwindSafe for TestMode
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