[][src]Trait test_context::TestContext

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

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

Required methods

pub fn setup() -> Self[src]

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

Loading content...

Provided methods

pub fn teardown(self)[src]

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

Loading content...

Implementors

Loading content...