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

Function table_fill

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

Source from the content-addressed store, hash-verified

109
110#[test]
111fn table_fill() -> Result<()> {
112 let mut config = Config::new();
113 config.enable_compiler(false);
114 config.concurrency_support(false);
115 let engine = Engine::new(&config)?;
116
117 OomTest::new().allow_alloc_after_oom(true).test(|| {
118 let mut store = Store::try_new(&engine, ())?;
119 let ty = TableType::new(RefType::FUNCREF, 4, None);
120 let table = Table::new(&mut store, ty, Ref::Func(None))?;
121 table.fill(&mut store, 0, Ref::Func(None), 4)?;
122 Ok(())
123 })
124}
125
126#[test]
127fn table_get() -> 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
fillMethod · 0.45

Tested by

no test coverage detected