galvanic_test

Trait TestFixture

Source
pub trait TestFixture<'param, P, R>: Drop
where P: Debug + 'static,
{ // Required methods fn new(curried_params: &'param P) -> Self; fn parameters() -> Option<Box<dyn Iterator<Item = P>>>; fn setup(&mut self) -> FixtureBinding<'_, Self, R> where Self: Sized; // Provided method fn tear_down(&self) { ... } }

Required Methods§

Source

fn new(curried_params: &'param P) -> Self

Source

fn parameters() -> Option<Box<dyn Iterator<Item = P>>>

Source

fn setup(&mut self) -> FixtureBinding<'_, Self, R>
where Self: Sized,

Provided Methods§

Source

fn tear_down(&self)

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§