Crate tokio_test
source ·Expand description
Tokio and Futures based testing utilites
Modules§
- A mocked clock for use with
tokio_timer
based futures. - A mock type implementing
AsyncRead
andAsyncWrite
. - Futures task based helpers
Macros§
- Asserts that the expression evaluates to
Err
and returns the error. - Asserts that the expression evaluates to
Ok
and returns the value. - Assert a
Poll
is pending. - Assert a
Poll
is ready, returning the value. - Assert if a poll is ready and check for equality on the value
- Assert a
Poll<Result<...>>
is ready andErr
, returning the error. - Assert a
Poll<Result<...>>
is ready andOk
, returning the value.
Functions§
- Runs the provided future, blocking the current thread until the future completes.