#tokio #io #read #write #testing #buffer #mock-stream

flash-mockstream

a mockstream for testing

2 releases

Uses old Rust 2015

0.1.1 Sep 7, 2018
0.1.0 Sep 7, 2018

#449 in #buffer

37 downloads per month

MIT license

4KB
73 lines

flash-mockstream

A mockstream that implements std::io::Read, std::io::Write, tokio_io::AsyncRead and tokio_io::AsyncWrite.

It writes and reads from the same buffer so you can write from one end and read from other end;

See tests folder for examples.


lib.rs:

A mockstream that implements std::io::Read, std::io::Write, tokio_io::AsyncRead and tokio_io::AsyncWrite.

Dependencies

~605KB
~11K SLoC