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

Function test_bytecode_decode_empty_program

xqvm_py/tests/test_program.py:49–52  ·  view source on GitHub ↗

An empty instruction stream inside a valid XQBC header decodes to an empty program.

()

Source from the content-addressed store, hash-verified

47
48
49def test_bytecode_decode_empty_program():
50 """An empty instruction stream inside a valid XQBC header decodes to an empty program."""
51 prog = program_from_bytecode(_make_xqbc(b""))
52 assert len(prog) == 0
53
54
55def test_bytecode_decode_unknown_opcode():

Callers

nothing calls this directly

Calls 2

program_from_bytecodeFunction · 0.90
_make_xqbcFunction · 0.85

Tested by

no test coverage detected