MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / decode_ecall

Function decode_ecall

crates/virtual-machine/tests/vm_decoder.rs:151–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149
150#[test]
151fn decode_ecall() {
152 let encoded = Ecall::new().encode();
153 let decoded = decode(encoded).expect("should decode ECALL");
154 assert!(
155 matches!(decoded, DecodedInsn::Ecall),
156 "expected Ecall variant, got {decoded:?}"
157 );
158}
159
160#[test]
161fn decode_illegal() {

Callers

nothing calls this directly

Calls 2

decodeFunction · 0.50
encodeMethod · 0.45

Tested by

no test coverage detected