Skip to content

test_worst_jumpi_fallthrough()

Documentation for tests/benchmark/test_worst_compute.py::test_worst_jumpi_fallthrough@88e9fb8f.

Generate fixtures for these test cases for Osaka with:

fill -v tests/benchmark/test_worst_compute.py::test_worst_jumpi_fallthrough -m benchmark

Test running a JUMPI-intensive contract with fallthrough.

Source code in tests/benchmark/test_worst_compute.py
1204
1205
1206
1207
1208
1209
1210
def test_worst_jumpi_fallthrough(
    benchmark_test: BenchmarkTestFiller,
) -> None:
    """Test running a JUMPI-intensive contract with fallthrough."""
    benchmark_test(
        code_generator=JumpLoopGenerator(attack_block=Op.JUMPI(Op.PUSH0, Op.PUSH0)),
    )

Parametrized Test Cases

This test case is only parametrized by fork.

Test ID (Abbreviated)
...fork_Prague-blockchain_test
...fork_Osaka-blockchain_test