Skip to content

test_rjump_before_header()

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

EOF1I4200_0004 (Invalid) EOF code containing RJUMP with target outside code bounds (Jumping before code begin).

Source code in tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py
139
140
141
142
143
144
145
146
147
148
149
def test_rjump_before_header(
    eof_test: EOFTestFiller,
):
    """
    EOF1I4200_0004 (Invalid) EOF code containing RJUMP with target outside code bounds
    (Jumping before code begin).
    """
    eof_test(
        container=Container.Code(Op.RJUMP[-23]),
        expect_exception=EOFException.INVALID_RJUMP_DESTINATION,
    )

Parametrized Test Cases

This test case is only parametrized by fork.

Test ID (Abbreviated)
...fork_Osaka-eof_test