Test Tstorage¶
Documentation for tests/cancun/eip1153_tstore/test_tstorage.py@49c766fb
.
Generate fixtures for these test cases for Prague with:
fill -v tests/cancun/eip1153_tstore/test_tstorage.py --fork Prague
Tests EIP-1153: Transient Storage Opcodes
Test EIP-1153: Transient Storage Opcodes. Ports and extends some tests from ethereum/tests/src/EIPTestsFiller/StateTests/stEIP1153-transientStorage/
Test Functions Overview¶
Name | Type | Cases (Prague) | Description |
---|---|---|---|
test_transient_storage_unset_values |
state_test | 1 | Test that tload returns zero for unset values. Loading an arbitrary value is |
test_tload_after_tstore |
state_test | 1 | Loading after storing returns the stored value: TSTORE(x, y), TLOAD(x) |
test_tload_after_sstore |
state_test | 1 | Loading after storing returns the stored value: TSTORE(x, y), TLOAD(x) |
test_tload_after_tstore_is_zero |
state_test | 1 | Test that tload returns zero after tstore is called with zero. |
test_gas_usage |
state_test | 4 | Test that tstore and tload consume the expected gas. |
test_run_until_out_of_gas |
state_test | 3 | Use TSTORE over and over to different keys until we run out of gas. |