#read #write #testing #buffer #io-write #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

#75 in #io-write

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

~615KB
~11K SLoC