Trait test_context::TestContext[][src]

pub trait TestContext where
    Self: Sized
{ fn setup() -> Self; fn teardown(self) { ... } }

The trait to implement to get setup/teardown functionality for tests.

Required methods

fn setup() -> Self[src]

Create the context. This is run once before each test that uses the context.

Loading content...

Provided methods

fn teardown(self)[src]

Perform any additional cleanup of the context besides that already provided by normal “drop” semantics.

Loading content...

Implementors

impl<T> TestContext for T where
    T: AsyncTestContext + Send
[src]

Loading content...