Crate futures_test

Source
Expand description

Utilities to make testing Futures easier

Modules§

future
Additional combinators for testing futures.
io
Additional combinators for testing async IO.
sink
Additional combinators for testing sinks.
stream
Additional combinators for testing streams.
task
Task related testing utilities.

Macros§

assert_stream_done
Assert that the next poll to the provided stream will return an empty Poll::Ready signalling the completion of the stream.
assert_stream_next
Assert that the next poll to the provided stream will return Poll::Ready with the provided item.
assert_stream_pending
Assert that the next poll to the provided stream will return Poll::Pending.

Attribute Macros§

test
Enables an async test function. The generated future will be run to completion with futures_executor::block_on.