Skip to content

test_pc_op()

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

Generate fixtures for these test cases for Osaka with:

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

Benchmark PC instruction.

Source code in tests/benchmark/compute/instruction/test_control_flow.py
38
39
40
41
42
43
44
45
46
@pytest.mark.repricing
def test_pc_op(
    benchmark_test: BenchmarkTestFiller,
) -> None:
    """Benchmark PC instruction."""
    benchmark_test(
        target_opcode=Op.PC,
        code_generator=ExtCallGenerator(attack_block=Op.PC),
    )

Parametrized Test Cases

This test generates 1 parametrized test case across 2 forks.