#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

#18 in #procedure

Download history 2240/week @ 2024-07-28 2511/week @ 2024-08-04 2082/week @ 2024-08-11 2307/week @ 2024-08-18 2585/week @ 2024-08-25 3253/week @ 2024-09-01 2465/week @ 2024-09-08 645/week @ 2024-09-15 2635/week @ 2024-09-22 1643/week @ 2024-09-29 2484/week @ 2024-10-06 2252/week @ 2024-10-13 1800/week @ 2024-10-20 2910/week @ 2024-10-27 2872/week @ 2024-11-03 2114/week @ 2024-11-10

9,784 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
~36K SLoC