Attribute Macro async_attributes::test
source · #[test]
Expand description
Enables an async test function.
Examples
ⓘ
#[async_std::test]
async fn my_test() -> std::io::Result<()> {
assert_eq!(2 * 2, 4);
Ok(())
}
#[test]
Enables an async test function.
#[async_std::test]
async fn my_test() -> std::io::Result<()> {
assert_eq!(2 * 2, 4);
Ok(())
}