#async #tokio #mock-stream

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

#1202 in Testing

Download history 245/week @ 2024-12-07 295/week @ 2024-12-14 116/week @ 2024-12-21 52/week @ 2024-12-28 195/week @ 2025-01-04 415/week @ 2025-01-11 294/week @ 2025-01-18 246/week @ 2025-01-25 578/week @ 2025-02-01 356/week @ 2025-02-08 233/week @ 2025-02-15 396/week @ 2025-02-22 232/week @ 2025-03-01 239/week @ 2025-03-08 321/week @ 2025-03-15 223/week @ 2025-03-22

1,077 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

~685KB
~12K SLoC