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

Function test_bytecode_decode_bad_magic

xqvm_py/tests/test_program.py:71–76  ·  view source on GitHub ↗

Non-XQBC bytes raise ValueError.

()

Source from the content-addressed store, hash-verified

69
70
71def 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
79def test_bytecode_decode_too_short():

Callers

nothing calls this directly

Calls 1

program_from_bytecodeFunction · 0.90

Tested by

no test coverage detected