MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / async_disallows_externref_new

Function async_disallows_externref_new

tests/all/missing_async.rs:253–258  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

251
252#[tokio::test]
253async fn async_disallows_externref_new() -> Result<()> {
254 let mut store = async_limiter_store();
255 assert!(ExternRef::new(&mut store, 1).is_err());
256 ExternRef::new_async(&mut store, 1).await?;
257 Ok(())
258}
259
260#[tokio::test]
261async fn async_disallows_structref_new() -> Result<()> {

Callers

nothing calls this directly

Calls 2

async_limiter_storeFunction · 0.85
OkFunction · 0.85

Tested by

no test coverage detected