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

Function panic_on_define_after_finalize

cranelift/jit/tests/basic.rs:66–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64
65#[test]
66fn panic_on_define_after_finalize() {
67 let Some(isa) = isa() else {
68 return;
69 };
70 let mut module = JITModule::new(JITBuilder::with_isa(isa, default_libcall_names()));
71
72 define_simple_function(&mut module).unwrap();
73 define_simple_function(&mut module).err().unwrap();
74}
75
76#[test]
77fn switch_error() {

Callers

nothing calls this directly

Calls 6

isaFunction · 0.85
default_libcall_namesFunction · 0.85
define_simple_functionFunction · 0.70
newFunction · 0.50
unwrapMethod · 0.45
errMethod · 0.45

Tested by

no test coverage detected