Expand description
Utilities to make testing Future
s 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 withfutures_executor::block_on
.