2022-04-28 07:53:40 +09:00
|
|
|
#![deny(duplicate_macro_attributes)]
|
|
|
|
|
|
2019-11-22 14:38:49 -08:00
|
|
|
use tests_build::tokio;
|
|
|
|
|
|
|
|
|
|
#[tokio::main]
|
|
|
|
|
fn main_is_not_async() {}
|
|
|
|
|
|
|
|
|
|
#[tokio::main(foo)]
|
|
|
|
|
async fn main_attr_has_unknown_args() {}
|
|
|
|
|
|
|
|
|
|
#[tokio::main(threadpool::bar)]
|
|
|
|
|
async fn main_attr_has_path_args() {}
|
|
|
|
|
|
|
|
|
|
#[tokio::test]
|
|
|
|
|
fn test_is_not_async() {}
|
|
|
|
|
|
|
|
|
|
#[tokio::test(foo)]
|
|
|
|
|
async fn test_attr_has_args() {}
|
|
|
|
|
|
2021-04-05 22:40:42 +02:00
|
|
|
#[tokio::test(foo = 123)]
|
|
|
|
|
async fn test_unexpected_attr() {}
|
|
|
|
|
|
|
|
|
|
#[tokio::test(flavor = 123)]
|
|
|
|
|
async fn test_flavor_not_string() {}
|
|
|
|
|
|
|
|
|
|
#[tokio::test(flavor = "foo")]
|
|
|
|
|
async fn test_unknown_flavor() {}
|
|
|
|
|
|
|
|
|
|
#[tokio::test(flavor = "multi_thread", start_paused = false)]
|
|
|
|
|
async fn test_multi_thread_with_start_paused() {}
|
|
|
|
|
|
|
|
|
|
#[tokio::test(flavor = "multi_thread", worker_threads = "foo")]
|
|
|
|
|
async fn test_worker_threads_not_int() {}
|
|
|
|
|
|
|
|
|
|
#[tokio::test(flavor = "current_thread", worker_threads = 4)]
|
|
|
|
|
async fn test_worker_threads_and_current_thread() {}
|
|
|
|
|
|
2022-04-18 17:24:27 +08:00
|
|
|
#[tokio::test(crate = 456)]
|
2023-03-19 12:28:43 +01:00
|
|
|
async fn test_crate_not_path_int() {}
|
2022-04-18 17:24:27 +08:00
|
|
|
|
|
|
|
|
#[tokio::test(crate = "456")]
|
2023-03-19 12:28:43 +01:00
|
|
|
async fn test_crate_not_path_invalid() {}
|
2022-04-18 17:24:27 +08:00
|
|
|
|
2024-06-07 19:48:56 +08:00
|
|
|
#[tokio::test(flavor = "multi_thread", unhandled_panic = "shutdown_runtime")]
|
|
|
|
|
async fn test_multi_thread_with_unhandled_panic() {}
|
|
|
|
|
|
2019-11-22 14:38:49 -08:00
|
|
|
#[tokio::test]
|
|
|
|
|
#[test]
|
|
|
|
|
async fn test_has_second_test_attr() {}
|
|
|
|
|
|
2024-05-06 00:28:59 +08:00
|
|
|
#[tokio::test]
|
|
|
|
|
#[::core::prelude::v1::test]
|
|
|
|
|
async fn test_has_second_test_attr_v1() {}
|
|
|
|
|
|
|
|
|
|
#[tokio::test]
|
|
|
|
|
#[core::prelude::rust_2015::test]
|
|
|
|
|
async fn test_has_second_test_attr_rust_2015() {}
|
|
|
|
|
|
|
|
|
|
#[tokio::test]
|
|
|
|
|
#[::std::prelude::rust_2018::test]
|
|
|
|
|
async fn test_has_second_test_attr_rust_2018() {}
|
|
|
|
|
|
|
|
|
|
#[tokio::test]
|
|
|
|
|
#[std::prelude::rust_2021::test]
|
|
|
|
|
async fn test_has_second_test_attr_rust_2021() {}
|
|
|
|
|
|
|
|
|
|
#[tokio::test]
|
|
|
|
|
#[tokio::test]
|
|
|
|
|
async fn test_has_generated_second_test_attr() {}
|
|
|
|
|
|
2026-04-01 11:46:27 +02:00
|
|
|
#[tokio::test(name = 123)]
|
|
|
|
|
async fn test_name_not_string() {}
|
|
|
|
|
|
2019-11-22 14:38:49 -08:00
|
|
|
fn main() {}
|