#async

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

#698 in Testing

Download history 220/week @ 2023-10-26 193/week @ 2023-11-02 197/week @ 2023-11-09 216/week @ 2023-11-16 203/week @ 2023-11-23 114/week @ 2023-11-30 152/week @ 2023-12-07 200/week @ 2023-12-14 193/week @ 2023-12-21 130/week @ 2023-12-28 149/week @ 2024-01-04 196/week @ 2024-01-11 189/week @ 2024-01-18 136/week @ 2024-01-25 107/week @ 2024-02-01 176/week @ 2024-02-08

630 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

~585KB
~10K SLoC