pub struct ContextCombinator<Context1: Context, Context2: Context> { /* private fields */ }Trait Implementations§
Source§impl<Context1: Context, Context2: Context> Context for ContextCombinator<Context1, Context2>
impl<Context1: Context, Context2: Context> Context for ContextCombinator<Context1, Context2>
Source§fn setup(shared_context: &mut SharedContext) -> Self
fn setup(shared_context: &mut SharedContext) -> Self
Will be executed before the test execution
You should prepare all your test requirement here.
Use the ready to notify that the test can start
Source§fn teardown(self, shared_context: &mut SharedContext)
fn teardown(self, shared_context: &mut SharedContext)
Will be executed before the test execution even if the test has panicked You should do your clean up here.
fn launch_setup(shared_context: &mut SharedContext) -> Self
fn launch_test<TestFn>( &mut self, test: TestFn, ) -> Result<(), Box<dyn Any + Send>>
fn launch_teardown(self, shared_context: &mut SharedContext)
Auto Trait Implementations§
impl<Context1, Context2> Freeze for ContextCombinator<Context1, Context2>
impl<Context1, Context2> RefUnwindSafe for ContextCombinator<Context1, Context2>where
Context1: RefUnwindSafe,
Context2: RefUnwindSafe,
impl<Context1, Context2> Send for ContextCombinator<Context1, Context2>
impl<Context1, Context2> Sync for ContextCombinator<Context1, Context2>
impl<Context1, Context2> Unpin for ContextCombinator<Context1, Context2>
impl<Context1, Context2> UnwindSafe for ContextCombinator<Context1, Context2>where
Context1: UnwindSafe,
Context2: UnwindSafe,
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