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