#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

#6 in #annotate

Download history 1645/week @ 2024-03-14 3091/week @ 2024-03-21 4149/week @ 2024-03-28 3786/week @ 2024-04-04 2606/week @ 2024-04-11 6451/week @ 2024-04-18 3287/week @ 2024-04-25 2664/week @ 2024-05-02 4457/week @ 2024-05-09 2642/week @ 2024-05-16 4936/week @ 2024-05-23 4020/week @ 2024-05-30 2043/week @ 2024-06-06 2982/week @ 2024-06-13 3313/week @ 2024-06-20 2302/week @ 2024-06-27

10,985 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
~35K SLoC