Skip to content

test_rjump_into_header()

Documentation for tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py::test_rjump_into_header@21fb11c8.

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py::test_rjump_into_header --fork Osaka

EOF1I4200_0003 (Invalid) EOF code containing RJUMP with target outside code bounds (Jumping into header).

Source code in tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py
124
125
126
127
128
129
130
131
132
133
134
135
136
@pytest.mark.parametrize("offset", [-5, -13])
def test_rjump_into_header(
    eof_test: EOFTestFiller,
    offset: int,
):
    """
    EOF1I4200_0003 (Invalid) EOF code containing RJUMP with target outside code bounds
    (Jumping into header).
    """
    eof_test(
        container=Container.Code(Op.RJUMP[offset]),
        expect_exception=EOFException.INVALID_RJUMP_DESTINATION,
    )

Parametrized Test Cases

The interactive table below is also available as a standalone page.

Test ID (Abbreviated) offset
...fork_Osaka-eof_test-offset_-5 -5
...fork_Osaka-eof_test-offset_-13 -13