#fn #async #test #run #procedure #macro #annotate

macro fluvio-test-derive

Procedure macro to run async fn as test

2 releases

0.1.1 May 8, 2021
0.1.0 Sep 21, 2020

#6 in #annotate

Download history 122/week @ 2024-07-26 593/week @ 2024-08-02 102/week @ 2024-08-09 171/week @ 2024-08-16 254/week @ 2024-08-23 146/week @ 2024-08-30 67/week @ 2024-09-06 75/week @ 2024-09-13 312/week @ 2024-09-20 174/week @ 2024-09-27 190/week @ 2024-10-04 162/week @ 2024-10-11 122/week @ 2024-10-18 163/week @ 2024-10-25 106/week @ 2024-11-01 13/week @ 2024-11-08

420 downloads per month

Apache-2.0

6KB
86 lines

Friendly, test runner for async function

To run a test, annotate as below:

#[test_async]
async fn test_sum() -> Result<(),std::io::Result> {
    assert(true,"I am alive);
    Ok(())
}

Dependencies

~1.5MB
~37K SLoC