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

Function shared_memory_size

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

Source from the content-addressed store, hash-verified

43
44#[test]
45fn shared_memory_size() -> Result<()> {
46 let engine = shared_memory_engine()?;
47
48 OomTest::new().test(|| {
49 let ty = MemoryTypeBuilder::new()
50 .min(1)
51 .max(Some(2))
52 .shared(true)
53 .build()?;
54 let mem = SharedMemory::new(&engine, ty)?;
55 assert_eq!(mem.size(), 1);
56 Ok(())
57 })
58}
59
60#[test]
61fn shared_memory_grow() -> Result<()> {

Callers

nothing calls this directly

Calls 8

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

Tested by

no test coverage detected