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

Function async_limiter_disallows_memory_grow

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

Source from the content-addressed store, hash-verified

359
360#[tokio::test]
361async fn async_limiter_disallows_memory_grow() -> Result<()> {
362 let mut store = async_limiter_store();
363 let ty = MemoryType::new(1, None);
364 let mem = Memory::new_async(&mut store, ty).await?;
365 assert!(mem.grow(&mut store, 1).is_err());
366 mem.grow_async(&mut store, 1).await?;
367 Ok(())
368}

Callers

nothing calls this directly

Calls 4

async_limiter_storeFunction · 0.85
OkFunction · 0.85
newFunction · 0.50
grow_asyncMethod · 0.45

Tested by

no test coverage detected