#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

#757 in Testing

Download history 1/week @ 2024-11-13 3/week @ 2024-11-20 1/week @ 2024-11-27 6/week @ 2024-12-04 9/week @ 2024-12-11 21/week @ 2025-01-22 89/week @ 2025-02-05 21/week @ 2025-02-12 10/week @ 2025-02-26

120 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–7.5MB
~47K SLoC