Skip to content

test_jumpf_to_nonexistent_section()

Documentation for tests/osaka/eip7692_eof_v1/eip6206_jumpf/test_jumpf_execution.py::test_jumpf_to_nonexistent_section@83970623.

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7692_eof_v1/eip6206_jumpf/test_jumpf_execution.py::test_jumpf_to_nonexistent_section --fork Osaka

Tests JUMPF jumping to valid section number but where the section does not exist.

Source code in tests/osaka/eip7692_eof_v1/eip6206_jumpf/test_jumpf_execution.py
291
292
293
294
295
296
297
298
299
300
301
302
303
304
def test_jumpf_to_nonexistent_section(
    eof_state_test: EOFStateTestFiller,
):
    """Tests JUMPF jumping to valid section number but where the section does not exist."""
    eof_state_test(
        container=Container(
            sections=[
                Section.Code(
                    code=Op.JUMPF[5],
                )
            ],
            validity_error=EOFException.INVALID_CODE_SECTION_INDEX,
        ),
    )

Parametrized Test Cases

This test case is only parametrized by fork and fixture format.

Test ID (Abbreviated)
...fork_Osaka-eof_test
...fork_Osaka-state_test
...fork_Osaka-blockchain_test