tower_test::mock

Function spawn_with

Source
pub fn spawn_with<T, U, F, S>(f: F) -> (Spawn<S>, Handle<T, U>)
where F: Fn(Mock<T, U>) -> S,
Expand description

Spawn a Service via the provided wrapper closure.