pub struct TestContext<'a> { /* private fields */ }
Expand description
The context of a specific test.
Test context is mainly used to store existing fixture proxy when fixture scope is Test or Global.
Implementations§
Source§impl<'a> TestContext<'a>
impl<'a> TestContext<'a>
pub fn add<B>(&mut self, value: Vec<B>)where
B: FixtureProxy + 'static,
pub fn get<B>(&mut self) -> Option<Vec<B>>where
B: FixtureProxy + 'static,
pub fn get_fixture<Fix>(&mut self) -> Vec<Fix>where
Fix: FixtureProxy + Any,
Auto Trait Implementations§
impl<'a> Freeze for TestContext<'a>
impl<'a> !RefUnwindSafe for TestContext<'a>
impl<'a> !Send for TestContext<'a>
impl<'a> !Sync for TestContext<'a>
impl<'a> Unpin for TestContext<'a>
impl<'a> !UnwindSafe for TestContext<'a>
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