pub struct TestBlock<'u> {
pub name: &'u str,
pub test_func: fn(),
pub ignored: bool,
pub should_panic: bool,
}
Expand description
Struct that contain information about a test function to run.
- name: The name of the function to be printed.
- test_func: The function to call for the test, must be like _() {} (without return value).
- ignored: Indicates of the test should be ignored.
- should_panic: Indicates if the test should panic, if true, then a panicking test will be marked as success
Fields§
§name: &'u str
§test_func: fn()
§ignored: bool
§should_panic: bool
Auto Trait Implementations§
impl<'u> Freeze for TestBlock<'u>
impl<'u> RefUnwindSafe for TestBlock<'u>
impl<'u> Send for TestBlock<'u>
impl<'u> Sync for TestBlock<'u>
impl<'u> Unpin for TestBlock<'u>
impl<'u> UnwindSafe for TestBlock<'u>
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