Crate tokio01_test

Source
Expand description

Tokio and Futures based testing utilites

§Example

let mut fut = future::ok::<(), ()>(());
assert_ready!(fut.poll());

Modules§

clock
A mocked clock for use with tokio_timer based futures.
task
Futures task based helpers

Macros§

assert_elapsed
Assert if the deadline has passed
assert_err
Assert if a poll the poll errored
assert_not_ready
Asset if the poll is not ready
assert_ready
Assert if a poll is ready
assert_ready_eq
Assert if a poll is ready and check for equality on the value