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

Function async_disallows_array_ref_new

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

Source from the content-addressed store, hash-verified

213
214#[tokio::test]
215async fn async_disallows_array_ref_new() -> Result<()> {
216 let mut store = async_limiter_store();
217 let ty = ArrayType::new(
218 store.engine(),
219 FieldType::new(Mutability::Var, StorageType::I8),
220 );
221 let pre = ArrayRefPre::new(&mut store, ty);
222 assert!(ArrayRef::new(&mut store, &pre, &Val::I32(0), 10).is_err());
223 ArrayRef::new_async(&mut store, &pre, &Val::I32(0), 10).await?;
224 Ok(())
225}
226
227#[tokio::test]
228async fn async_disallows_array_ref_new_fixed() -> Result<()> {

Callers

nothing calls this directly

Calls 4

async_limiter_storeFunction · 0.85
OkFunction · 0.85
newFunction · 0.50
engineMethod · 0.45

Tested by

no test coverage detected