stream_assert
Macros to simplify testing of Stream based APIs.
Provides the following assertion macros:
// Assert that the next value is ready and equal to the given expression.
assert_next_eq!;
// Assert that the next value is ready and matches the given pattern.
assert_next_matches!;
// Assert that the stream is not ready (`poll_next` returns `Pending`).
assert_pending!;
// Assert that the stream is closed (`poll_next` returns `Ready(None)`).
assert_closed!;