#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

#533 in Testing

Download history 3/week @ 2023-12-13 192/week @ 2023-12-20 62/week @ 2023-12-27 90/week @ 2024-01-03 123/week @ 2024-01-10 2/week @ 2024-01-17 1/week @ 2024-02-07 10/week @ 2024-02-14 80/week @ 2024-02-21 101/week @ 2024-02-28 120/week @ 2024-03-06 125/week @ 2024-03-13

430 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