#async #buffer #stream #fake #backed #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

#1584 in Asynchronous

Download history 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 236/week @ 2024-03-27 220/week @ 2024-04-03 168/week @ 2024-04-10 198/week @ 2024-04-17 199/week @ 2024-04-24

832 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