Path: blob/main/crates/misc/component-async-tests/tests/test_all.rs
3073 views
//! All scenario tests have been put into this binary to ensure that we run1//! tests with concurrently, as separate test binaries run serially.23macro_rules! assert_test_exists {4($name:ident) => {5#[expect(unused_imports, reason = "just here to ensure a name exists")]6use self::$name as _;7};8}9test_programs_artifacts::foreach_async!(assert_test_exists);1011mod scenario;1213use scenario::backpressure::{async_backpressure_callee, async_backpressure_caller};14use scenario::borrowing::{async_borrowing_callee, async_borrowing_caller};15use scenario::error_context::{16async_error_context, async_error_context_callee, async_error_context_caller,17};18use scenario::post_return::{19async_post_return_callee, async_post_return_caller, async_sleep_post_return_callee,20async_sleep_post_return_caller,21};22use scenario::read_resource_stream::async_read_resource_stream;23use scenario::round_trip::{24async_round_trip_stackful, async_round_trip_stackless, async_round_trip_stackless_sync_import,25async_round_trip_synchronous, async_round_trip_wait,26};27use scenario::round_trip_direct::async_round_trip_direct_stackless;28use scenario::round_trip_many::{29async_round_trip_many_stackful, async_round_trip_many_stackless,30async_round_trip_many_synchronous, async_round_trip_many_wait,31};32use scenario::streams::{async_closed_stream, async_closed_streams, async_short_reads};33use scenario::transmit::{34async_cancel_callee, async_cancel_caller, async_cancel_transmit, async_intertask_communication,35async_poll_stackless, async_poll_synchronous, async_readiness, async_synchronous_transmit,36async_transmit_callee, async_transmit_caller,37};38use scenario::unit_stream::{async_unit_stream_callee, async_unit_stream_caller};39use scenario::yield_::{40async_yield_callee_stackless, async_yield_callee_synchronous, async_yield_caller,41async_yield_caller_cancel,42};434445