Registry / testing / stream-assert

stream-assert

JSON →
library0.1.1rscratesunverified

Macros to simplify testing of Stream-based APIs in Rust.

# Cargo.toml [dependencies] stream_assert = "0.1.1"
INSTALL
IMPORT
SIG · STREAM-ASSERT
S
stream-assert
testingrustv0.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

assert_stream
use stream_assert::assert_stream;

Asserts that a stream yields the expected sequence of items.

use stream_assert::assert_stream; use futures::stream::iter; fn main() { let stream = iter(vec![1, 2, 3]); assert_stream!(stream, [1, 2, 3]); println!("Stream assertion passed"); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
stream-assert — cargo add stream-assert · libregistry