Skip to content

test_rjump_outside_other_section_after()

Documentation for tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py::test_rjump_outside_other_section_after@49a16fac.

Generate fixtures for these test cases for Osaka with:

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

EOF code containing RJUMP with target outside code bounds (Subsequent code section).

Source code in tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py
185
186
187
188
189
190
191
192
193
194
195
196
197
198
def test_rjump_outside_other_section_after(
    eof_test: EOFTestFiller,
):
    """EOF code containing RJUMP with target outside code bounds (Subsequent code section)."""
    eof_test(
        container=Container(
            sections=[
                Section.Code(code=Op.JUMPF[1]),
                Section.Code(code=Op.RJUMP[3] + Op.JUMPF[2]),
                Section.Code(code=Op.STOP),
            ],
        ),
        expect_exception=EOFException.INVALID_RJUMP_DESTINATION,
    )

Parametrized Test Cases

This test case is only parametrized by fork.

Test ID (Abbreviated)
...fork_Osaka-eof_test