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

Function retrieve_nonexistent_value

cranelift/interpreter/src/frame.rs:181–188  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

179 #[test]
180 #[should_panic(expected = "assertion failed: name.index() < self.registers.len()")]
181 fn retrieve_nonexistent_value() {
182 let func = empty_function();
183 let frame = Frame::new(&func);
184 let ssa_value_ref = ValueRef::from_u32(1);
185
186 // Retrieving a non-existent value should return an error.
187 frame.get(ssa_value_ref);
188 }
189
190 #[test]
191 #[should_panic(expected = "empty slot: v5")]

Callers

nothing calls this directly

Calls 3

empty_functionFunction · 0.85
newFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected