Skip to content

Test Count Leading Zeros

Documentation for tests/osaka/eip7939_count_leading_zeros/[email protected].

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7939_count_leading_zeros/test_count_leading_zeros.py --fork Osaka

Test Functions Overview

Name Type Cases (Osaka) Description
test_clz_opcode_scenarios state_test 522 Test CLZ opcode functionality.
test_clz_gas_cost state_test 1 Test CLZ opcode gas cost.
test_clz_gas_cost_boundary state_test 20 Test CLZ opcode gas cost boundary.
test_clz_stack_underflow state_test 1 Test CLZ opcode with empty stack (should revert due to stack underflow).
test_clz_stack_not_overflow state_test 1 Test CLZ opcode never causes stack overflow.
test_clz_push_operation_same_value state_test 1 Test CLZ opcode returns the same value via different push operations.
test_clz_fork_transition blockchain_test 0 Test CLZ opcode behavior at fork transition.
test_clz_jump_operation state_test 40 Test CLZ opcode with valid and invalid jump.
test_clz_from_set_code state_test 1 Test the address opcode in a set-code transaction.
test_clz_code_copy_operation state_test 6 Test CLZ opcode with code copy operation.
test_clz_with_memory_operation state_test 6 Test CLZ opcode with memory operation.
test_clz_initcode_context state_test 1 Test CLZ opcode behavior when creating a contract.
test_clz_initcode_create state_test 2 Test CLZ opcode behavior when creating a contract.
test_clz_call_operation state_test 4 Test CLZ opcode with call operation.