Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bytecodealliance
GitHub Repository: bytecodealliance/wasmtime
Path: blob/main/crates/misc/component-async-tests/tests/scenario/unit_stream.rs
1693 views
1
use anyhow::Result;
2
3
use super::util::test_run_with_count;
4
5
// No-op function; we only test this by composing it in `async_unit_stream_caller`
6
#[allow(
7
dead_code,
8
reason = "here only to make the `assert_test_exists` macro happy"
9
)]
10
pub fn async_unit_stream_callee() {}
11
12
#[tokio::test]
13
pub async fn async_unit_stream_caller() -> Result<()> {
14
test_run_with_count(
15
&[
16
test_programs_artifacts::ASYNC_UNIT_STREAM_CALLER_COMPONENT,
17
test_programs_artifacts::ASYNC_UNIT_STREAM_CALLEE_COMPONENT,
18
],
19
1,
20
)
21
.await
22
}
23
24