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

Function async_limiter_disallows_table_new

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

Source from the content-addressed store, hash-verified

331
332#[tokio::test]
333async fn async_limiter_disallows_table_new() -> Result<()> {
334 let mut store = async_limiter_store();
335 let ty = TableType::new(RefType::FUNCREF, 1, None);
336 assert!(Table::new(&mut store, ty.clone(), Ref::Func(None)).is_err());
337 Table::new_async(&mut store, ty, Ref::Func(None)).await?;
338 Ok(())
339}
340
341#[tokio::test]
342async fn async_limiter_disallows_table_grow() -> Result<()> {

Callers

nothing calls this directly

Calls 4

async_limiter_storeFunction · 0.85
OkFunction · 0.85
newFunction · 0.50
FuncEnum · 0.50

Tested by

no test coverage detected