#async #buffer #stream #backed #fake #applications

tokio-mockstream

A fake stream for testing network applications backed by buffers

2 stable releases

Uses old Rust 2015

1.1.0 Jun 21, 2017
1.0.0 Jun 21, 2017

#1547 in Asynchronous

Download history 153/week @ 2023-12-13 154/week @ 2023-12-20 92/week @ 2023-12-27 98/week @ 2024-01-03 161/week @ 2024-01-10 139/week @ 2024-01-17 105/week @ 2024-01-24 71/week @ 2024-01-31 149/week @ 2024-02-07 185/week @ 2024-02-14 153/week @ 2024-02-21 181/week @ 2024-02-28 183/week @ 2024-03-06 155/week @ 2024-03-13 205/week @ 2024-03-20 214/week @ 2024-03-27

777 downloads per month

MIT/Apache

7KB
103 lines

tokio-mockstream Build Status Crates.io Built with Spacemacs

A fake stream for testing network applications backed by buffers.

Usage

[dependencies]
tokio-mockstream = "1.0"

Next, add this to your crate:

extern crate tokio_mockstream;

use tokio_mockstream::MockStream;

The general idea is to treat MockStream as you would TcpStream. You can find documentation online at docs.rs.

License

tokio-mockstream is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE, and LICENSE-MIT for details.


lib.rs:

A fake stream for testing network applications backed by buffers.

Dependencies

~605KB
~11K SLoC