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

macro fluvio-future-derive

Procedure macro to run async fn as test

1 unstable release

0.1.0 Jul 15, 2024

#17 in #procedure

Download history 1255/week @ 2024-07-16 3692/week @ 2024-07-23 2070/week @ 2024-07-30 2103/week @ 2024-08-06 1996/week @ 2024-08-13 2147/week @ 2024-08-20 3328/week @ 2024-08-27 2712/week @ 2024-09-03 2231/week @ 2024-09-10 660/week @ 2024-09-17 2903/week @ 2024-09-24 1709/week @ 2024-10-01 2478/week @ 2024-10-08 2045/week @ 2024-10-15 2166/week @ 2024-10-22 2481/week @ 2024-10-29

9,662 downloads per month
Used in 10 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