pub struct TestBuilder<'module, 'func> { /* private fields */ }
Expand description
Constructs a Test
Implementations§
Source§impl<'module, 'func> TestBuilder<'module, 'func>
impl<'module, 'func> TestBuilder<'module, 'func>
pub fn new(module: &'module TestModule, name: &'static str) -> Self
Sourcepub fn using_fixture_dir(self) -> Self
pub fn using_fixture_dir(self) -> Self
Configures this test to use an existing fixture directory. The base path is defined by the parent Module or Group, with an existing subdirectory expected to be the name of this test.
Sourcepub fn using_temp_dir(self) -> Self
pub fn using_temp_dir(self) -> Self
Configures the test to use a temporary directory. The base path is defined by the parent Module or Group, with a subdirectory created just for this test (by its name).
Sourcepub fn inherit_temp_dir(self) -> Self
pub fn inherit_temp_dir(self) -> Self
Configures the test to use the exact same temporary directory as its parent Module or Group. A separate subdirectory will not be created for this test.
Sourcepub fn inherit_fixture_dir(self) -> Self
pub fn inherit_fixture_dir(self) -> Self
Configures the test to use the exact same fixture directory as its parent Module or Group. A separate subdirectory for this test is not expected to exist.
Auto Trait Implementations§
impl<'module, 'func> Freeze for TestBuilder<'module, 'func>
impl<'module, 'func> !RefUnwindSafe for TestBuilder<'module, 'func>
impl<'module, 'func> !Send for TestBuilder<'module, 'func>
impl<'module, 'func> !Sync for TestBuilder<'module, 'func>
impl<'module, 'func> Unpin for TestBuilder<'module, 'func>
impl<'module, 'func> !UnwindSafe for TestBuilder<'module, 'func>
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