Struct libtest_mimic::Test
source · [−]pub struct Test<D = ()> {
pub name: String,
pub kind: String,
pub is_ignored: bool,
pub is_bench: bool,
pub data: D,
}
Expand description
Description of a single test.
Fields
name: String
The name of the test. It’s displayed in the output and used for all kinds of filtering.
kind: String
Optional string to describe the kind of test. If this string is not
empty, it is printed in brackets before the test name (e.g.
test [my-kind] test_name
).
is_ignored: bool
Whether or not this test should be ignored. If the --ignored
flag is
set, ignored tests are executed, too.
is_bench: bool
Whether this test is actually a benchmark.
data: D
Custom data. This field is not used by this library and can instead be used to store arbitrary data per test.
Implementations
Trait Implementations
Auto Trait Implementations
impl<D> RefUnwindSafe for Test<D> where
D: RefUnwindSafe,
impl<D> Send for Test<D> where
D: Send,
impl<D> Sync for Test<D> where
D: Sync,
impl<D> Unpin for Test<D> where
D: Unpin,
impl<D> UnwindSafe for Test<D> where
D: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more