Crate stream_assert
source ·Macros
- Assert that the stream is closed, i.e. calling
poll_next
returnsPoll::Ready(None)
. - Assert that the stream is ready with a value that is equal to the given expression.
- Assert that the stream is ready with a value that matches the given pattern.
- Assert that the stream is pending, i.e. calling
poll_next
returnsPoll::Pending
. - Assert that the stream is ready, i.e. calling
poll_next
returnsPoll::Ready(Some(_))
.