#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

#1709 in Asynchronous

Download history 207/week @ 2024-03-17 201/week @ 2024-03-24 271/week @ 2024-03-31 148/week @ 2024-04-07 206/week @ 2024-04-14 208/week @ 2024-04-21 195/week @ 2024-04-28 190/week @ 2024-05-05 191/week @ 2024-05-12 185/week @ 2024-05-19 200/week @ 2024-05-26 207/week @ 2024-06-02 119/week @ 2024-06-09 235/week @ 2024-06-16 196/week @ 2024-06-23 54/week @ 2024-06-30

638 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