test_valid_mcopy_operations()¶
Documentation for tests/cancun/eip5656_mcopy/test_mcopy.py::test_valid_mcopy_operations@verkle@v0.0.6.
Generate fixtures for these test cases for Cancun with:
Cancun only:
fill -v tests/cancun/eip5656_mcopy/test_mcopy.py::test_valid_mcopy_operations --fork=Cancun --evm-bin=/path/to/evm-tool-dev-version
For all forks up to and including Cancun:
fill -v tests/cancun/eip5656_mcopy/test_mcopy.py::test_valid_mcopy_operations --until=Cancun
Perform MCOPY operations using different offsets and lengths
- Zero inputs
- Memory rewrites (copy from and to the same location)
- Memory overwrites (copy from and to different locations)
- Memory extensions (copy to a location that is out of bounds)
- Memory clear (copy from a location that is out of bounds)
Source code in tests/cancun/eip5656_mcopy/test_mcopy.py
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | |
Parametrized Test Cases¶
The interactive table below is also available as a standalone page.
Skipped Parameters
For more concise readability, the table below does not list the following parameter values:
fork, blockchain_test, state_test, state_test_only, eof_test, eof_state_test.
| Test ID | evm_code_type | dest | src | length |
|---|---|---|---|---|
| evm_code_type_LEGACY-zero_inputs | LEGACY | 0 | 0 | 0 |
| evm_code_type_LEGACY-zero_length_out_of_bounds_destination | LEGACY | 115792089237316195423570985008687907853269984665640564039457584007913129639935 | 0 | 0 |
| evm_code_type_LEGACY-single_byte_rewrite | LEGACY | 0 | 0 | 1 |
| evm_code_type_LEGACY-full_word_rewrite | LEGACY | 0 | 0 | 32 |
| evm_code_type_LEGACY-single_byte_forward_overwrite | LEGACY | 1 | 0 | 1 |
| evm_code_type_LEGACY-full_word_forward_overwrite | LEGACY | 1 | 0 | 32 |
| evm_code_type_LEGACY-mid_word_single_byte_rewrite | LEGACY | 17 | 17 | 1 |
| evm_code_type_LEGACY-mid_word_single_word_rewrite | LEGACY | 17 | 17 | 32 |
| evm_code_type_LEGACY-mid_word_multi_word_rewrite | LEGACY | 17 | 17 | 64 |
| evm_code_type_LEGACY-two_words_forward_overwrite | LEGACY | 16 | 0 | 64 |
| evm_code_type_LEGACY-two_words_backward_overwrite | LEGACY | 0 | 16 | 64 |
| evm_code_type_LEGACY-two_words_backward_overwrite_single_byte_offset | LEGACY | 15 | 16 | 64 |
| evm_code_type_LEGACY-single_byte_memory_extension | LEGACY | 256 | 1 | 1 |
| evm_code_type_LEGACY-single_word_memory_extension | LEGACY | 256 | 1 | 32 |
| evm_code_type_LEGACY-single_word_minus_one_byte_memory_extension | LEGACY | 256 | 1 | 31 |
| evm_code_type_LEGACY-single_word_plus_one_byte_memory_extension | LEGACY | 256 | 1 | 33 |
| evm_code_type_LEGACY-full_memory_rewrite | LEGACY | 0 | 0 | 256 |
| evm_code_type_LEGACY-full_memory_copy | LEGACY | 256 | 0 | 256 |
| evm_code_type_LEGACY-full_memory_copy_offset | LEGACY | 512 | 0 | 256 |
| evm_code_type_LEGACY-full_memory_clean | LEGACY | 0 | 256 | 256 |
| evm_code_type_LEGACY-out_of_bounds_memory_extension | LEGACY | 256 | 256 | 1 |
| evm_code_type_LEGACY-zero_inputs | LEGACY | 0 | 0 | 0 |
| evm_code_type_LEGACY-zero_length_out_of_bounds_destination | LEGACY | 115792089237316195423570985008687907853269984665640564039457584007913129639935 | 0 | 0 |
| evm_code_type_LEGACY-single_byte_rewrite | LEGACY | 0 | 0 | 1 |
| evm_code_type_LEGACY-full_word_rewrite | LEGACY | 0 | 0 | 32 |
| evm_code_type_LEGACY-single_byte_forward_overwrite | LEGACY | 1 | 0 | 1 |
| evm_code_type_LEGACY-full_word_forward_overwrite | LEGACY | 1 | 0 | 32 |
| evm_code_type_LEGACY-mid_word_single_byte_rewrite | LEGACY | 17 | 17 | 1 |
| evm_code_type_LEGACY-mid_word_single_word_rewrite | LEGACY | 17 | 17 | 32 |
| evm_code_type_LEGACY-mid_word_multi_word_rewrite | LEGACY | 17 | 17 | 64 |
| evm_code_type_LEGACY-two_words_forward_overwrite | LEGACY | 16 | 0 | 64 |
| evm_code_type_LEGACY-two_words_backward_overwrite | LEGACY | 0 | 16 | 64 |
| evm_code_type_LEGACY-two_words_backward_overwrite_single_byte_offset | LEGACY | 15 | 16 | 64 |
| evm_code_type_LEGACY-single_byte_memory_extension | LEGACY | 256 | 1 | 1 |
| evm_code_type_LEGACY-single_word_memory_extension | LEGACY | 256 | 1 | 32 |
| evm_code_type_LEGACY-single_word_minus_one_byte_memory_extension | LEGACY | 256 | 1 | 31 |
| evm_code_type_LEGACY-single_word_plus_one_byte_memory_extension | LEGACY | 256 | 1 | 33 |
| evm_code_type_LEGACY-full_memory_rewrite | LEGACY | 0 | 0 | 256 |
| evm_code_type_LEGACY-full_memory_copy | LEGACY | 256 | 0 | 256 |
| evm_code_type_LEGACY-full_memory_copy_offset | LEGACY | 512 | 0 | 256 |
| evm_code_type_LEGACY-full_memory_clean | LEGACY | 0 | 256 | 256 |
| evm_code_type_LEGACY-out_of_bounds_memory_extension | LEGACY | 256 | 256 | 1 |
| evm_code_type_EOF_V1-zero_inputs | EOF_V1 | 0 | 0 | 0 |
| evm_code_type_EOF_V1-zero_length_out_of_bounds_destination | EOF_V1 | 115792089237316195423570985008687907853269984665640564039457584007913129639935 | 0 | 0 |
| evm_code_type_EOF_V1-single_byte_rewrite | EOF_V1 | 0 | 0 | 1 |
| evm_code_type_EOF_V1-full_word_rewrite | EOF_V1 | 0 | 0 | 32 |
| evm_code_type_EOF_V1-single_byte_forward_overwrite | EOF_V1 | 1 | 0 | 1 |
| evm_code_type_EOF_V1-full_word_forward_overwrite | EOF_V1 | 1 | 0 | 32 |
| evm_code_type_EOF_V1-mid_word_single_byte_rewrite | EOF_V1 | 17 | 17 | 1 |
| evm_code_type_EOF_V1-mid_word_single_word_rewrite | EOF_V1 | 17 | 17 | 32 |
| evm_code_type_EOF_V1-mid_word_multi_word_rewrite | EOF_V1 | 17 | 17 | 64 |
| evm_code_type_EOF_V1-two_words_forward_overwrite | EOF_V1 | 16 | 0 | 64 |
| evm_code_type_EOF_V1-two_words_backward_overwrite | EOF_V1 | 0 | 16 | 64 |
| evm_code_type_EOF_V1-two_words_backward_overwrite_single_byte_offset | EOF_V1 | 15 | 16 | 64 |
| evm_code_type_EOF_V1-single_byte_memory_extension | EOF_V1 | 256 | 1 | 1 |
| evm_code_type_EOF_V1-single_word_memory_extension | EOF_V1 | 256 | 1 | 32 |
| evm_code_type_EOF_V1-single_word_minus_one_byte_memory_extension | EOF_V1 | 256 | 1 | 31 |
| evm_code_type_EOF_V1-single_word_plus_one_byte_memory_extension | EOF_V1 | 256 | 1 | 33 |
| evm_code_type_EOF_V1-full_memory_rewrite | EOF_V1 | 0 | 0 | 256 |
| evm_code_type_EOF_V1-full_memory_copy | EOF_V1 | 256 | 0 | 256 |
| evm_code_type_EOF_V1-full_memory_copy_offset | EOF_V1 | 512 | 0 | 256 |
| evm_code_type_EOF_V1-full_memory_clean | EOF_V1 | 0 | 256 | 256 |
| evm_code_type_EOF_V1-out_of_bounds_memory_extension | EOF_V1 | 256 | 256 | 1 |
| evm_code_type_EOF_V1-zero_inputs | EOF_V1 | 0 | 0 | 0 |
| evm_code_type_EOF_V1-zero_length_out_of_bounds_destination | EOF_V1 | 115792089237316195423570985008687907853269984665640564039457584007913129639935 | 0 | 0 |
| evm_code_type_EOF_V1-single_byte_rewrite | EOF_V1 | 0 | 0 | 1 |
| evm_code_type_EOF_V1-full_word_rewrite | EOF_V1 | 0 | 0 | 32 |
| evm_code_type_EOF_V1-single_byte_forward_overwrite | EOF_V1 | 1 | 0 | 1 |
| evm_code_type_EOF_V1-full_word_forward_overwrite | EOF_V1 | 1 | 0 | 32 |
| evm_code_type_EOF_V1-mid_word_single_byte_rewrite | EOF_V1 | 17 | 17 | 1 |
| evm_code_type_EOF_V1-mid_word_single_word_rewrite | EOF_V1 | 17 | 17 | 32 |
| evm_code_type_EOF_V1-mid_word_multi_word_rewrite | EOF_V1 | 17 | 17 | 64 |
| evm_code_type_EOF_V1-two_words_forward_overwrite | EOF_V1 | 16 | 0 | 64 |
| evm_code_type_EOF_V1-two_words_backward_overwrite | EOF_V1 | 0 | 16 | 64 |
| evm_code_type_EOF_V1-two_words_backward_overwrite_single_byte_offset | EOF_V1 | 15 | 16 | 64 |
| evm_code_type_EOF_V1-single_byte_memory_extension | EOF_V1 | 256 | 1 | 1 |
| evm_code_type_EOF_V1-single_word_memory_extension | EOF_V1 | 256 | 1 | 32 |
| evm_code_type_EOF_V1-single_word_minus_one_byte_memory_extension | EOF_V1 | 256 | 1 | 31 |
| evm_code_type_EOF_V1-single_word_plus_one_byte_memory_extension | EOF_V1 | 256 | 1 | 33 |
| evm_code_type_EOF_V1-full_memory_rewrite | EOF_V1 | 0 | 0 | 256 |
| evm_code_type_EOF_V1-full_memory_copy | EOF_V1 | 256 | 0 | 256 |
| evm_code_type_EOF_V1-full_memory_copy_offset | EOF_V1 | 512 | 0 | 256 |
| evm_code_type_EOF_V1-full_memory_clean | EOF_V1 | 0 | 256 | 256 |
| evm_code_type_EOF_V1-out_of_bounds_memory_extension | EOF_V1 | 256 | 256 | 1 |