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

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

#529 in Testing

Download history 133/week @ 2024-03-11 56/week @ 2024-03-18 51/week @ 2024-03-25 202/week @ 2024-04-01 115/week @ 2024-04-08 9/week @ 2024-04-15 248/week @ 2024-04-22 106/week @ 2024-04-29 7/week @ 2024-05-06 300/week @ 2024-05-13 257/week @ 2024-05-20 11/week @ 2024-05-27 3/week @ 2024-06-10 205/week @ 2024-06-24

210 downloads per month
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
~46K SLoC