Crate stream_assert

source ·

Macros

  • Assert that the stream is closed, i.e. calling poll_next returns Poll::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 returns Poll::Pending.
  • Assert that the stream is ready, i.e. calling poll_next returns Poll::Ready(Some(_)).