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

macro dev 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

#7 in #annotate

Download history 1853/week @ 2023-12-04 2883/week @ 2023-12-11 1665/week @ 2023-12-18 651/week @ 2023-12-25 1019/week @ 2024-01-01 1759/week @ 2024-01-08 3062/week @ 2024-01-15 1969/week @ 2024-01-22 1840/week @ 2024-01-29 2039/week @ 2024-02-05 1642/week @ 2024-02-12 2446/week @ 2024-02-19 1652/week @ 2024-02-26 2620/week @ 2024-03-04 1761/week @ 2024-03-11 2527/week @ 2024-03-18

8,582 downloads per month
Used in 18 crates (via fluvio-future)

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
~33K SLoC