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

Function table_ty

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

Source from the content-addressed store, hash-verified

142
143#[test]
144fn table_ty() -> Result<()> {
145 let mut config = Config::new();
146 config.enable_compiler(false);
147 config.concurrency_support(false);
148 let engine = Engine::new(&config)?;
149
150 OomTest::new().allow_alloc_after_oom(true).test(|| {
151 let mut store = Store::try_new(&engine, ())?;
152 let ty = TableType::new(RefType::FUNCREF, 1, None);
153 let table = Table::new(&mut store, ty, Ref::Func(None))?;
154 let _ty = table.ty(&store);
155 Ok(())
156 })
157}
158
159#[test]
160fn table_size() -> Result<()> {

Callers

nothing calls this directly

Calls 9

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

Tested by

no test coverage detected