Test All Opcodes¶
Documentation for tests/frontier/opcodes/test_all_opcodes.py@8db70f93.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/frontier/opcodes/test_all_opcodes.py --fork Amsterdam
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 (Amsterdam) | Description |
|---|---|---|---|
test_all_opcodes |
state_test | 1 | Test each possible opcode on the fork with a single contract that calls |
test_constant_gas |
state_test | 145 | Test that constant gas opcodes work as expected. |
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. |