Attribute Macro pollster_macro::test

source ·
#[test]
Expand description

Uses [pollster::block_on] to enable async on test functions.

Example

#[pollster::test]
async fn main() {
    let my_fut = async {};

    my_fut.await;
}