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

Function roundtrip_traps

cranelift/codegen/src/ir/memflags.rs:588–593  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

586
587 #[test]
588 fn roundtrip_traps() {
589 for trap in TrapCode::non_user_traps().iter().copied() {
590 let _flags = MemFlagsData::new().with_trap_code(Some(trap));
591 }
592 let _flags = MemFlagsData::new().with_trap_code(None);
593 }
594
595 #[test]
596 fn cannot_set_big_and_little() {

Callers

nothing calls this directly

Calls 4

copiedMethod · 0.80
newFunction · 0.50
iterMethod · 0.45
with_trap_codeMethod · 0.45

Tested by

no test coverage detected