Test Additional Coverage¶
Documentation for tests/amsterdam/eip7976_increase_calldata_floor_cost/test_additional_coverage.py@b314d18e.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip7976_increase_calldata_floor_cost/test_additional_coverage.py --fork Amsterdam
Additional test coverage for EIP-7976: Increase calldata floor cost.
This module tests: 1. Token calculation verification with different byte compositions 2. Maximum calldata size handling 3. Memory expansion interaction with floor cost 4. Nested contract calls verification 5. Exact threshold boundary testing 6. Authorization list gas cost verification 7. Gas refund cap interaction with floor cost
Test Functions Overview¶
| Name | Type | Cases (Amsterdam) | Description |
|---|---|---|---|
test_authorization_list_intrinsic_gas |
state_test | 3 | Verify authorization list gas costs are included in intrinsic gas. |
test_exact_threshold_boundary |
state_test | 12 | Find exact calldata byte count N where floor_cost == intrinsic_cost. |
test_maximum_calldata_size |
state_test | 1 | Test transaction with large calldata size (~10M gas worth). |
test_memory_expansion_with_calldata |
state_test | 3 | Test memory expansion gas is counted in execution_gas not floor. |
test_delegatecall_no_additional_floor_cost |
state_test | 1 | Verify DELEGATECALL operations don't trigger additional floor costs. |
test_nested_call_no_additional_floor_cost |
state_test | 1 | Verify only the transaction's calldata affects floor cost. |
test_floor_cost_not_reduced_by_refunds |
state_test | 1 | Verify floor cost acts as a true floor and is never reduced. |
test_refund_cap_at_one_fifth |
state_test | 1 | Test that refunds are capped at the fork max refund quotient. |
test_token_calculation_verification |
state_test | 6 | Verify token calculation is correct for different byte compositions. |