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

Function table_new_async

crates/fuzzing/tests/oom/table.rs:26–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25#[tokio::test]
26async fn table_new_async() -> Result<()> {
27 let mut config = Config::new();
28 config.enable_compiler(false);
29 config.concurrency_support(false);
30 let engine = Engine::new(&config)?;
31
32 OomTest::new()
33 .allow_alloc_after_oom(true)
34 .test_async(|| async {
35 let mut store = Store::try_new(&engine, ())?;
36 let ty = TableType::new(RefType::FUNCREF, 1, None);
37 let _table = Table::new_async(&mut store, ty, Ref::Func(None)).await?;
38 Ok(())
39 })
40 .await
41}
42
43#[test]
44fn table_grow() -> Result<()> {

Callers

nothing calls this directly

Calls 8

OkFunction · 0.85
enable_compilerMethod · 0.80
test_asyncMethod · 0.80
allow_alloc_after_oomMethod · 0.80
newFunction · 0.50
try_newFunction · 0.50
FuncClass · 0.50
concurrency_supportMethod · 0.45

Tested by

no test coverage detected