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

Function async_limiter_disallows_memory_new

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

Source from the content-addressed store, hash-verified

350
351#[tokio::test]
352async fn async_limiter_disallows_memory_new() -> Result<()> {
353 let mut store = async_limiter_store();
354 let ty = MemoryType::new(1, None);
355 assert!(Memory::new(&mut store, ty.clone()).is_err());
356 Memory::new_async(&mut store, ty).await?;
357 Ok(())
358}
359
360#[tokio::test]
361async fn async_limiter_disallows_memory_grow() -> Result<()> {

Callers

nothing calls this directly

Calls 3

async_limiter_storeFunction · 0.85
OkFunction · 0.85
newFunction · 0.50

Tested by

no test coverage detected