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

Function test_bytecode_decode_too_short

xqvm_py/tests/test_program.py:79–84  ·  view source on GitHub ↗

Bytes shorter than the 15-byte header raise ValueError.

()

Source from the content-addressed store, hash-verified

77
78
79def test_bytecode_decode_too_short():
80 """Bytes shorter than the 15-byte header raise ValueError."""
81 import pytest
82
83 with pytest.raises(ValueError, match="too short"):
84 program_from_bytecode(b"XQBC")
85
86
87def test_bytecode_decode_bad_version():

Callers

nothing calls this directly

Calls 1

program_from_bytecodeFunction · 0.90

Tested by

no test coverage detected