Macro dual_test

Source
macro_rules! dual_test {
    ($name:ident $body:block) => { ... };
}
Expand description

Shorthand when you don’t need a dedicated module on wasm (i.e. the test name is unique anyway). Generates either a tokio::test or a wasm_bindgen_test for the same async function.

cross_locks::dual_test! { my_other_test {
    // …
}}