Trait TestCase

Source
pub trait TestCase<X, S>:
    Sized
    + Send
    + Sync
    + 'static
where Self: Sized + Send + Sync + 'static, X: TestFixture<S>, S: TestSuite,
{ // Required method fn run( &self, fixture: Arc<X>, ) -> impl Future<Output = Result> + Send + 'static; }

Required Methods§

Source

fn run(&self, fixture: Arc<X>) -> impl Future<Output = Result> + Send + 'static

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<C, X, S> TestCase<X, S> for C
where C: for<'a> AsyncFn<'a, (Arc<X>,), Output = Result> + Send + Sync + 'static, X: TestFixture<S>, S: TestSuite,