test_truncated_container_without_data()
¶
Documentation for tests/osaka/eip7692_eof_v1/eip3540_eof_v1/test_section_size.py::test_truncated_container_without_data@bc691d13
.
Generate fixtures for these test cases for Osaka with:
fill -v tests/osaka/eip7692_eof_v1/eip3540_eof_v1/test_section_size.py::test_truncated_container_without_data --fork Osaka
Test takes a semi-valid container and removes some bytes from its tail. Migrated from EOFTests/efValidation/EOF1_truncated_section_.json (cases without data section).
Source code in tests/osaka/eip7692_eof_v1/eip3540_eof_v1/test_section_size.py
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 |
|
Parametrized Test Cases¶
The interactive table below is also available as a standalone page.
Test ID (Abbreviated) | truncation_len | exception |
---|---|---|
...fork_Osaka-eof_test-truncation_len_0-exception_EOFException.UNREACHABLE_INSTRUCTIONS | 0 | EOFException.UNREACHABLE_INSTRUCTIONS |
...fork_Osaka-eof_test-EOF1_truncated_section_2 | 1 | EOFException.INVALID_SECTION_BODIES_SIZE |
...fork_Osaka-eof_test-EOF1_truncated_section_1 | 3 | EOFException.INVALID_SECTION_BODIES_SIZE |
...fork_Osaka-eof_test-EOF1_truncated_section_0 | 6 | EOFException.INVALID_SECTION_BODIES_SIZE |
...fork_Osaka-state_test_from_eof_test-truncation_len_0-exception_EOFException.UNREACHABLE_INSTRUCTIONS | 0 | EOFException.UNREACHABLE_INSTRUCTIONS |
...fork_Osaka-state_test_from_eof_test-EOF1_truncated_section_2 | 1 | EOFException.INVALID_SECTION_BODIES_SIZE |
...fork_Osaka-state_test_from_eof_test-EOF1_truncated_section_1 | 3 | EOFException.INVALID_SECTION_BODIES_SIZE |
...fork_Osaka-state_test_from_eof_test-EOF1_truncated_section_0 | 6 | EOFException.INVALID_SECTION_BODIES_SIZE |
...fork_Osaka-blockchain_test_from_eof_test-truncation_len_0-exception_EOFException.UNREACHABLE_INSTRUCTIONS | 0 | EOFException.UNREACHABLE_INSTRUCTIONS |
...fork_Osaka-blockchain_test_from_eof_test-EOF1_truncated_section_2 | 1 | EOFException.INVALID_SECTION_BODIES_SIZE |
...fork_Osaka-blockchain_test_from_eof_test-EOF1_truncated_section_1 | 3 | EOFException.INVALID_SECTION_BODIES_SIZE |
...fork_Osaka-blockchain_test_from_eof_test-EOF1_truncated_section_0 | 6 | EOFException.INVALID_SECTION_BODIES_SIZE |