#testing #test #futures #tokio #utilities #code

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
Download history 1709/week @ 2020-11-12 1412/week @ 2020-11-19 1560/week @ 2020-11-26 1323/week @ 2020-12-03 1350/week @ 2020-12-10 1876/week @ 2020-12-17 1121/week @ 2020-12-24 1669/week @ 2020-12-31 1941/week @ 2021-01-07 1738/week @ 2021-01-14 1518/week @ 2021-01-21 1060/week @ 2021-01-28 1429/week @ 2021-02-04 1709/week @ 2021-02-11 982/week @ 2021-02-18 1353/week @ 2021-02-25

14,706 downloads per month

MIT license

16KB
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

# extern crate futures;
# #[macro_use] extern crate tokio01_test;
# use futures::{Future, future};
let mut fut = future::ok::<(), ()>(());
assert_ready!(fut.poll());

Dependencies

~555KB