pub struct Test {
pub test_name: &'static str,
pub test_fn: fn() -> Box<dyn GenericTestResult>,
}Expand description
A test instance that contains the test name and the test function that will be run.
Fields§
§test_name: &'static str§test_fn: fn() -> Box<dyn GenericTestResult>Implementations§
Source§impl Test
impl Test
Sourcepub fn run_test(self) -> TestResult
pub fn run_test(self) -> TestResult
Run a test function, returning the name of the test and the result of it in a GenericTestResult.
Auto Trait Implementations§
impl Freeze for Test
impl RefUnwindSafe for Test
impl Send for Test
impl Sync for Test
impl Unpin for Test
impl UnwindSafe for Test
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