MCPcopy Create free account
hub / github.com/QuipNetwork/xquad / test_bytecode_decode_unknown_opcode

Function test_bytecode_decode_unknown_opcode

xqvm_py/tests/test_program.py:55–60  ·  view source on GitHub ↗

Unknown opcode byte in the payload raises ValueError.

()

Source from the content-addressed store, hash-verified

53
54
55def 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
63def test_bytecode_decode_truncated():

Callers

nothing calls this directly

Calls 3

program_from_bytecodeFunction · 0.90
_make_xqbcFunction · 0.85
bytesFunction · 0.85

Tested by

no test coverage detected