Skip to content

test_jumpi_fallthrough()

Documentation for tests/benchmark/compute/instruction/test_control_flow.py::test_jumpi_fallthrough@7b8124a7.

Generate fixtures for these test cases for Osaka with:

fill -v tests/benchmark/compute/instruction/test_control_flow.py::test_jumpi_fallthrough --gas-benchmark-values 1

Benchmark JUMPI instruction with fallthrough.

Source code in tests/benchmark/compute/instruction/test_control_flow.py
78
79
80
81
82
83
84
85
86
87
88
@pytest.mark.repricing
def test_jumpi_fallthrough(
    benchmark_test: BenchmarkTestFiller,
) -> None:
    """Benchmark JUMPI instruction with fallthrough."""
    benchmark_test(
        target_opcode=Op.JUMPI,
        code_generator=JumpLoopGenerator(
            attack_block=Op.JUMPI(Op.PUSH0, Op.PUSH0)
        ),
    )

Parametrized Test Cases

This test generates 1 parametrized test case across 2 forks.