#tokio-task #mocking #able

dev tokio-mock-task

Mock a Tokio task

2 releases

Uses old Rust 2015

0.1.1 Jan 2, 2019
0.1.0 Aug 16, 2018

#18 in #able

Download history 16/week @ 2023-12-03 23/week @ 2023-12-10 28/week @ 2023-12-17 22/week @ 2023-12-24 5/week @ 2023-12-31 20/week @ 2024-01-07 26/week @ 2024-01-14 19/week @ 2024-01-21 6/week @ 2024-01-28 15/week @ 2024-02-04 33/week @ 2024-02-11 56/week @ 2024-02-18 83/week @ 2024-02-25 61/week @ 2024-03-03 45/week @ 2024-03-10 47/week @ 2024-03-17

241 downloads per month
Used in fewer than 6 crates

MIT license

6KB
80 lines

Tokio Mock Task

Mock a task for testing.

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in tokio-mock-task by you, shall be licensed as MIT, without any additional terms or conditions.


lib.rs:

Wrap Tokio based code with a mock task.

This allows writing tests that are able to assert that a task is notified on an event.

Dependencies

~53KB