Non-XQBC bytes raise ValueError.
()
| 69 | |
| 70 | |
| 71 | def test_bytecode_decode_bad_magic(): |
| 72 | """Non-XQBC bytes raise ValueError.""" |
| 73 | import pytest |
| 74 | |
| 75 | with pytest.raises(ValueError, match="wrong magic"): |
| 76 | program_from_bytecode(b"\x00" * 15) |
| 77 | |
| 78 | |
| 79 | def test_bytecode_decode_too_short(): |
nothing calls this directly
no test coverage detected