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

Function shared_memory_ty

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

Source from the content-addressed store, hash-verified

27
28#[test]
29fn shared_memory_ty() -> Result<()> {
30 let engine = shared_memory_engine()?;
31
32 OomTest::new().test(|| {
33 let ty = MemoryTypeBuilder::new()
34 .min(1)
35 .max(Some(2))
36 .shared(true)
37 .build()?;
38 let mem = SharedMemory::new(&engine, ty)?;
39 let _ty = mem.ty();
40 Ok(())
41 })
42}
43
44#[test]
45fn shared_memory_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
tyMethod · 0.45

Tested by

no test coverage detected