Skip to content

test_rjump_into_data()

Documentation for tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py::test_rjump_into_data@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_into_data --fork Osaka

EOF1I4200_0005 (Invalid) EOF code containing RJUMP with target outside code bounds (Jumping into data section).

Source code in tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
def test_rjump_into_data(
    eof_test: EOFTestFiller,
):
    """
    EOF1I4200_0005 (Invalid) EOF code containing RJUMP with target outside code bounds
    (Jumping into data section).
    """
    eof_test(
        container=Container(
            sections=[
                Section.Code(Op.RJUMP[2]),
                Section.Data(data=b"\xaa\xbb\xcc"),
            ],
        ),
        expect_exception=EOFException.INVALID_RJUMP_DESTINATION,
    )

Parametrized Test Cases

This test case is only parametrized by fork.

Test ID (Abbreviated)
...fork_Osaka-eof_test