#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

#20 in #procedure

Download history 2250/week @ 2024-10-14 1992/week @ 2024-10-21 2966/week @ 2024-10-28 2615/week @ 2024-11-04 2074/week @ 2024-11-11 2241/week @ 2024-11-18 1418/week @ 2024-11-25 2522/week @ 2024-12-02 2981/week @ 2024-12-09 1213/week @ 2024-12-16 1764/week @ 2024-12-23 878/week @ 2024-12-30 1865/week @ 2025-01-06 3991/week @ 2025-01-13 3320/week @ 2025-01-20 2996/week @ 2025-01-27

12,180 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