test_eofcreate_memory()
¶
Documentation for tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_memory.py::test_eofcreate_memory@83970623
.
Generate fixtures for these test cases for Osaka with:
fill -v tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_memory.py::test_eofcreate_memory --fork Osaka
Tests auxdata sizes in EOFCREATE including multiple offset conditions.
EOFCREATE either succeeds or fails based on memory access cost, resulting in new address or zero in the create address slot.
The name id of *-mem-cost
refers to the bit-length of the result of the calculated memory
expansion cost. Their length choice is designed to cause problems on shorter bit-length
representations with native integers.
The offset_field
param indicates what part of the input data arguments are being tested,
either the offset of the data in memory or the size of the data in memory.
The test_arg
param is the value passed into the field being tested (offset or size),
intending to trigger integer size bugs for that particular field.
Source code in tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_memory.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
|
Parametrized Test Cases¶
The interactive table below is also available as a standalone page.
Test ID (Abbreviated) | test_arg | success | offset_field |
---|---|---|---|
...fork_Osaka-blockchain_test-zero-offset | 0 | True | True |
...fork_Osaka-blockchain_test-zero-size | 0 | True | False |
...fork_Osaka-blockchain_test-8-bit-offset | 255 | True | True |
...fork_Osaka-blockchain_test-8-bit-size | 255 | True | False |
...fork_Osaka-blockchain_test-9-bit-offset | 256 | True | True |
...fork_Osaka-blockchain_test-9-bit-size | 256 | True | False |
...fork_Osaka-blockchain_test-16-bit-offset | 65535 | True | True |
...fork_Osaka-blockchain_test-16-bit-size | 65535 | True | False |
...fork_Osaka-blockchain_test-17-bit-offset | 65536 | True | True |
...fork_Osaka-blockchain_test-17-bit-size | 65536 | True | False |
...fork_Osaka-blockchain_test-32-bit-mem-cost-offset | 33554208 | False | True |
...fork_Osaka-blockchain_test-32-bit-mem-cost-size | 33554208 | False | False |
...fork_Osaka-blockchain_test-33-bit-mem-cost-offset | 47452896 | False | True |
...fork_Osaka-blockchain_test-33-bit-mem-cost-size | 47452896 | False | False |
...fork_Osaka-blockchain_test-32-bit-offset | 4294967295 | False | True |
...fork_Osaka-blockchain_test-32-bit-size | 4294967295 | False | False |
...fork_Osaka-blockchain_test-33-bit-offset | 4294967296 | False | True |
...fork_Osaka-blockchain_test-33-bit-size | 4294967296 | False | False |
...fork_Osaka-blockchain_test-64-bit-mem-cost-offset | 2199023255328 | False | True |
...fork_Osaka-blockchain_test-64-bit-mem-cost-size | 2199023255328 | False | False |
...fork_Osaka-blockchain_test-65-bit-mem-cost-offset | 3109888511744 | False | True |
...fork_Osaka-blockchain_test-65-bit-mem-cost-size | 3109888511744 | False | False |
...fork_Osaka-blockchain_test-64-bit-offset | 18446744073709551615 | False | True |
...fork_Osaka-blockchain_test-64-bit-size | 18446744073709551615 | False | False |
...fork_Osaka-blockchain_test-65-bit-offset | 18446744073709551616 | False | True |
...fork_Osaka-blockchain_test-65-bit-size | 18446744073709551616 | False | False |
...fork_Osaka-blockchain_test-128-bit-offset | 18446744073709551615 | False | True |
...fork_Osaka-blockchain_test-128-bit-size | 18446744073709551615 | False | False |
...fork_Osaka-blockchain_test-129-bit-offset | 18446744073709551616 | False | True |
...fork_Osaka-blockchain_test-129-bit-size | 18446744073709551616 | False | False |
...fork_Osaka-blockchain_test-256-bit-offset | 340282366920938463463374607431768211455 | False | True |
...fork_Osaka-blockchain_test-256-bit-size | 340282366920938463463374607431768211455 | False | False |
...fork_Osaka-state_test-zero-offset | 0 | True | True |
...fork_Osaka-state_test-zero-size | 0 | True | False |
...fork_Osaka-state_test-8-bit-offset | 255 | True | True |
...fork_Osaka-state_test-8-bit-size | 255 | True | False |
...fork_Osaka-state_test-9-bit-offset | 256 | True | True |
...fork_Osaka-state_test-9-bit-size | 256 | True | False |
...fork_Osaka-state_test-16-bit-offset | 65535 | True | True |
...fork_Osaka-state_test-16-bit-size | 65535 | True | False |
...fork_Osaka-state_test-17-bit-offset | 65536 | True | True |
...fork_Osaka-state_test-17-bit-size | 65536 | True | False |
...fork_Osaka-state_test-32-bit-mem-cost-offset | 33554208 | False | True |
...fork_Osaka-state_test-32-bit-mem-cost-size | 33554208 | False | False |
...fork_Osaka-state_test-33-bit-mem-cost-offset | 47452896 | False | True |
...fork_Osaka-state_test-33-bit-mem-cost-size | 47452896 | False | False |
...fork_Osaka-state_test-32-bit-offset | 4294967295 | False | True |
...fork_Osaka-state_test-32-bit-size | 4294967295 | False | False |
...fork_Osaka-state_test-33-bit-offset | 4294967296 | False | True |
...fork_Osaka-state_test-33-bit-size | 4294967296 | False | False |
...fork_Osaka-state_test-64-bit-mem-cost-offset | 2199023255328 | False | True |
...fork_Osaka-state_test-64-bit-mem-cost-size | 2199023255328 | False | False |
...fork_Osaka-state_test-65-bit-mem-cost-offset | 3109888511744 | False | True |
...fork_Osaka-state_test-65-bit-mem-cost-size | 3109888511744 | False | False |
...fork_Osaka-state_test-64-bit-offset | 18446744073709551615 | False | True |
...fork_Osaka-state_test-64-bit-size | 18446744073709551615 | False | False |
...fork_Osaka-state_test-65-bit-offset | 18446744073709551616 | False | True |
...fork_Osaka-state_test-65-bit-size | 18446744073709551616 | False | False |
...fork_Osaka-state_test-128-bit-offset | 18446744073709551615 | False | True |
...fork_Osaka-state_test-128-bit-size | 18446744073709551615 | False | False |
...fork_Osaka-state_test-129-bit-offset | 18446744073709551616 | False | True |
...fork_Osaka-state_test-129-bit-size | 18446744073709551616 | False | False |
...fork_Osaka-state_test-256-bit-offset | 340282366920938463463374607431768211455 | False | True |
...fork_Osaka-state_test-256-bit-size | 340282366920938463463374607431768211455 | False | False |