Skip to main content

TestFn

Type Alias TestFn 

Source
pub type TestFn = Arc<dyn Fn(FixturePool) -> Pin<Box<dyn Future<Output = Result<(), TestFailure>> + Send>> + Send + Sync>;
Expand description

The async test body: takes a fixture pool, returns success or failure. Uses Arc so tests can be re-dispatched for retries and repeatEach.

Aliased Typeยง

pub struct TestFn { /* private fields */ }