Crate stream_assert

Crate stream_assert 

Source

Macrosยง

assert_closed
Assert that the stream is closed, i.e. calling poll_next returns Poll::Ready(None).
assert_next_eq
Assert that the stream is ready with a value that is equal to the given expression.
assert_next_matches
Assert that the stream is ready with a value that matches the given pattern.
assert_pending
Assert that the stream is pending, i.e. calling poll_next returns Poll::Pending.
assert_ready
Assert that the stream is ready, i.e. calling poll_next returns Poll::Ready(Some(_)).