Skip to content

Test Modexp Thresholds

Documentation for tests/osaka/eip7883_modexp_gas_increase/test_modexp_thresholds.py@98848dfe.

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7883_modexp_gas_increase/test_modexp_thresholds.py --fork Osaka

Test Functions Overview

Name Type Cases (Osaka) Description
test_vectors_from_eip state_test 46 Test ModExp gas cost using the test vectors from EIP-7883.
test_vectors_from_legacy_tests state_test 32 Test ModExp gas cost using the test vectors from legacy tests.
test_modexp_invalid_inputs state_test 3 Test ModExp gas cost with invalid inputs.
test_modexp_boundary_inputs state_test 4 Test ModExp boundary inputs.
test_modexp_call_operations state_test 4 Test ModExp call related operations with EIP-7883.
test_modexp_gas_usage_contract_wrapper state_test 3 Test ModExp gas cost with different gas modifiers using contract wrapper calls.
test_modexp_used_in_transaction_entry_points state_test 3 Test ModExp using in transaction entry points with different precompile gas modifiers.
test_modexp_variable_gas_cost state_test 54 Test ModExp variable gas cost.
test_modexp_variable_gas_cost_exceed_tx_gas_cap state_test 1 Test ModExp variable gas cost.