Truncated operands in the payload raise ValueError.
()
| 61 | |
| 62 | |
| 63 | def test_bytecode_decode_truncated(): |
| 64 | """Truncated operands in the payload raise ValueError.""" |
| 65 | import pytest |
| 66 | |
| 67 | with pytest.raises(ValueError, match="truncated operands"): |
| 68 | program_from_bytecode(_make_xqbc(bytes([0x11]))) # PUSH1 needs 1 operand byte |
| 69 | |
| 70 | |
| 71 | def test_bytecode_decode_bad_magic(): |
nothing calls this directly
no test coverage detected