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

#1749 in Asynchronous

Download history 182/week @ 2024-07-22 189/week @ 2024-07-29 167/week @ 2024-08-05 258/week @ 2024-08-12 179/week @ 2024-08-19 184/week @ 2024-08-26 182/week @ 2024-09-02 170/week @ 2024-09-09 183/week @ 2024-09-16 244/week @ 2024-09-23 205/week @ 2024-09-30 66/week @ 2024-10-07 154/week @ 2024-10-14 160/week @ 2024-10-21 178/week @ 2024-10-28 161/week @ 2024-11-04

657 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

~615KB
~11K SLoC