#mocking #tokio #async-read #object #async-write #async-io #tasks

sfio-tokio-mock-io

Mock object that implements AsyncRead and AsyncWrite to facilitate testing of Tokio tasks

1 unstable release

0.2.0 Oct 26, 2022

#680 in Testing


Used in 2 crates

MIT/Apache

9KB
195 lines

Tokio mock I/O

Mock object that implements AsyncRead and AsyncWrite to facilitate testing of Tokio tasks.


lib.rs:

Mock objects for Tokio's AsyncRead and AsyncWrite.

This crate is an alternative to the mocks in tokio-test.

Dependencies

~2–8.5MB
~47K SLoC