Attribute Macro ic_kit::async_test
[−]#[async_test]Expand description
async_std::test to be used for async tests when not targeting WASM. Enables an async test function.
Examples
ⓘ
#[async_std::test]
async fn my_test() -> std::io::Result<()> {
assert_eq!(2 * 2, 4);
Ok(())
}