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

Function table_copy

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

Source from the content-addressed store, hash-verified

93
94#[test]
95fn table_copy() -> Result<()> {
96 let mut config = Config::new();
97 config.enable_compiler(false);
98 config.concurrency_support(false);
99 let engine = Engine::new(&config)?;
100
101 OomTest::new().allow_alloc_after_oom(true).test(|| {
102 let mut store = Store::try_new(&engine, ())?;
103 let ty = TableType::new(RefType::FUNCREF, 4, None);
104 let table = Table::new(&mut store, ty, Ref::Func(None))?;
105 Table::copy(&mut store, &table, 0, &table, 2, 2)?;
106 Ok(())
107 })
108}
109
110#[test]
111fn table_fill() -> Result<()> {

Callers

nothing calls this directly

Calls 8

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

Tested by

no test coverage detected