#mocking #tokio #object #async-write #async-read #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

#570 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–3MB
~47K SLoC