Skip to content

test_rjump_outside_other_section_before()

Documentation for tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py::test_rjump_outside_other_section_before@83970623.

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_before --fork Osaka

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

Source code in tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py
170
171
172
173
174
175
176
177
178
179
180
181
182
def test_rjump_outside_other_section_before(
    eof_test: EOFTestFiller,
):
    """EOF code containing RJUMP with target outside code bounds (prior code section)."""
    eof_test(
        container=Container(
            sections=[
                Section.Code(code=Op.JUMPF[1]),
                Section.Code(code=Op.RJUMP[-6]),
            ],
        ),
        expect_exception=EOFException.INVALID_RJUMP_DESTINATION,
    )

Parametrized Test Cases

This test case is only parametrized by fork.

Test ID (Abbreviated)
...fork_Osaka-eof_test