#test #future #async #fn #procedure #run #macro

macro fluvio-future-derive

Procedure macro to run async fn as test

1 unstable release

0.1.0 Jul 15, 2024

#15 in #procedure

Download history 904/week @ 2024-07-12 2612/week @ 2024-07-19 2408/week @ 2024-07-26 2336/week @ 2024-08-02 2333/week @ 2024-08-09 2205/week @ 2024-08-16 1906/week @ 2024-08-23 2830/week @ 2024-08-30

9,502 downloads per month
Used in 11 crates (via fluvio-future)

Apache-2.0

6KB
119 lines

Friendly, test runner for async function

To run a test, annotate as below:

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

Dependencies

~1.5MB
~37K SLoC