Unknown opcode byte in the payload raises ValueError.
()
| 53 | |
| 54 | |
| 55 | def test_bytecode_decode_unknown_opcode(): |
| 56 | """Unknown opcode byte in the payload raises ValueError.""" |
| 57 | import pytest |
| 58 | |
| 59 | with pytest.raises(ValueError, match="unknown opcode 0x0D"): |
| 60 | program_from_bytecode(_make_xqbc(bytes([0x0D]))) |
| 61 | |
| 62 | |
| 63 | def test_bytecode_decode_truncated(): |
nothing calls this directly
no test coverage detected