tokio-test: add tokio_test::io mock builder

This commit is contained in:
Sean McArthur
2019-07-12 11:19:12 -07:00
parent 2291823181
commit 48d7f7b931
4 changed files with 482 additions and 1 deletions
+10
View File
@@ -20,7 +20,17 @@
//! assert_ready!(fut.poll());
//! ```
macro_rules! ready {
($e:expr) => {
match $e {
::std::task::Poll::Ready(t) => t,
::std::task::Poll::Pending => return ::std::task::Poll::Pending,
}
};
}
pub mod clock;
pub mod io;
mod macros;
pub mod task;