https://github.com/aatxe/tokio-mockstream
A fake stream for testing network applications backed by buffers.
https://github.com/aatxe/tokio-mockstream
async buffer stream testing tokio
Last synced: about 1 year ago
JSON representation
A fake stream for testing network applications backed by buffers.
- Host: GitHub
- URL: https://github.com/aatxe/tokio-mockstream
- Owner: aatxe
- License: apache-2.0
- Created: 2017-06-21T21:29:49.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-10-23T19:16:21.000Z (over 6 years ago)
- Last Synced: 2025-04-21T16:51:54.508Z (about 1 year ago)
- Topics: async, buffer, stream, testing, tokio
- Language: Rust
- Size: 14.6 KB
- Stars: 5
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# tokio-mockstream [](https://travis-ci.org/aatxe/tokio-mockstream) [](https://crates.io/crates/tokio-mockstream) [](http://spacemacs.org) #
A fake stream for testing network applications backed by buffers.
# Usage
```toml
[dependencies]
tokio-mockstream = "1.1"
```
Next, add this to your crate:
```rust
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](https://docs.rs/tokio-mockstream/).
# 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.