tokio01-test

Testing utilities for Tokio and futures-based code

2 releases

Uses old Rust 2015

0.1.1 Jul 30, 2019
0.1.0 Jul 30, 2019

#2222 in Asynchronous

MIT license

17KB
404 lines

tokio01-test

Tokio and Futures based testing utilities

Documenation

Usage

First, add this to your Cargo.toml:

[dev-dependencies]
tokio01-test = "0.1.0"

Next, add this to your crate:

#[macro_use]
extern crate tokio01_test;

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Tokio by you, shall be licensed as MIT, without any additional terms or conditions.


lib.rs:

Tokio and Futures based testing utilites

Example

let mut fut = future::ok::<(), ()>(());
assert_ready!(fut.poll());

Dependencies

~620KB