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

Function get_nonexistent_constant

cranelift/codegen/src/ir/constant.rs:348–352  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

346 #[test]
347 #[should_panic]
348 fn get_nonexistent_constant() {
349 let sut = ConstantPool::new();
350 let a = Constant::with_number(42).unwrap();
351 sut.get(a); // panics, only use constants returned by ConstantPool
352 }
353
354 #[test]
355 fn display_constant_data() {

Callers

nothing calls this directly

Calls 3

newFunction · 0.50
unwrapMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected