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

Function shared_memory_grow

crates/fuzzing/tests/oom/shared_memory.rs:61–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59
60#[test]
61fn shared_memory_grow() -> Result<()> {
62 let engine = shared_memory_engine()?;
63
64 OomTest::new().test(|| {
65 let ty = MemoryTypeBuilder::new()
66 .min(1)
67 .max(Some(4))
68 .shared(true)
69 .build()?;
70 let mem = SharedMemory::new(&engine, ty)?;
71 let _old = mem.grow(1)?;
72 Ok(())
73 })
74}
75
76#[test]
77fn shared_memory_data_size() -> Result<()> {

Callers

nothing calls this directly

Calls 9

shared_memory_engineFunction · 0.85
OkFunction · 0.85
newFunction · 0.50
testMethod · 0.45
buildMethod · 0.45
sharedMethod · 0.45
maxMethod · 0.45
minMethod · 0.45
growMethod · 0.45

Tested by

no test coverage detected