Debian Codegraph @

third_party/rust/futures/tests/test_macro.rs

raw
1 #[futures_test::test]
2 async fn it_works() {
3 let fut = async { true };
4 assert!(fut.await);
5
6 let fut = async { false };
7 assert!(!fut.await);
8 }
9
10 #[should_panic]
11 #[futures_test::test]
12 async fn it_is_being_run() {
13 let fut = async { false };
14 assert!(fut.await);
15 }
16
17 #[futures_test::test]
18 async fn return_ty() -> Result<(), ()> {
19 Ok(())
20 }