Skip to content

Test All Opcodes In Container

Documentation for tests/prague/eip7692_eof_v1/eip3540_eof_v1/test_all_opcodes_in_container.py@f6ab9733.

Generate fixtures for these test cases for Pragueeip7692 with:

Pragueeip7692 only:

fill -v tests/prague/eip7692_eof_v1/eip3540_eof_v1/test_all_opcodes_in_container.py --fork=PragueEIP7692 --evm-bin=/path/to/evm-tool-dev-version

For all forks up to and including Pragueeip7692:

fill -v tests/prague/eip7692_eof_v1/eip3540_eof_v1/test_all_opcodes_in_container.py --until=PragueEIP7692

EOF Container: check how every opcode behaves in the middle of the valid eof container code

Test Functions Overview

Name Type Cases Description
test_all_opcodes_in_container eof_test 255 Test all opcodes inside valid container
test_all_invalid_terminating_opcodes eof_test 142 Test all opcodes that are invalid as the last opcode in a container
test_all_unreachable_terminating_opcodes_after_stop eof_test 7 Test all terminating opcodes after stop.
test_all_unreachable_terminating_opcodes_before_stop eof_test 6 Test all opcodes terminating opcodes before.
test_all_opcodes_stack_underflow eof_test 96 Test stack underflow on all opcodes that require at least one item on the stack
test_all_opcodes_stack_overflow eof_test 140 Test stack overflow on all opcodes that push more items than they pop