[−]Attribute Macro async_std::test
#[test]
This is supported on
attributes
only.Enables an async test function.
Examples
ⓘThis example is not tested
#[async_std::test] async fn my_test() -> std::io::Result<()> { assert_eq!(2 * 2, 4); Ok(()) }