macro_rules! assert_stream_done {
($stream:expr) => { ... };
}Expand description
Assert that the next poll to the provided stream will return an empty
Poll::Ready signalling the
completion of the stream.
ยงExamples
use core::pin::pin;
use futures::stream;
use futures_test::future::FutureTestExt;
use futures_test::assert_stream_pending;
use futures_test::assert_stream_next;
use futures_test::assert_stream_done;
let stream = stream::once((async { 5 }).pending_once());
let mut stream = pin!(stream);
assert_stream_pending!(stream);
assert_stream_next!(stream, 5);
assert_stream_done!(stream);