Test All Opcodes¶
Documentation for tests/frontier/opcodes/test_all_opcodes.py@7b8124a7.
Generate fixtures for these test cases for Osaka with:
fill -v tests/frontier/opcodes/test_all_opcodes.py --fork Osaka
Call every possible opcode and test that the subcall is successful if the opcode is supported by the fork and fails otherwise.
Test Functions Overview¶
| Name | Type | Cases (Osaka) | Description |
|---|---|---|---|
test_all_opcodes |
state_test | 1 | Test each possible opcode on the fork with a single contract that calls |
test_cover_revert |
state_test | 1 | Cover state revert from original tests for the coverage script. |
test_stack_overflow |
state_test | 138 | Test that opcodes which leave new items on the stack can overflow. |
test_constant_gas |
state_test | 145 | Test that constant gas opcodes work as expected. |