Skip to content

test_gas_op()

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

Generate fixtures for these test cases for Osaka with:

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

Benchmark GAS instruction.

Source code in tests/benchmark/compute/instruction/test_control_flow.py
27
28
29
30
31
32
33
34
35
@pytest.mark.repricing
def test_gas_op(
    benchmark_test: BenchmarkTestFiller,
) -> None:
    """Benchmark GAS instruction."""
    benchmark_test(
        target_opcode=Op.GAS,
        code_generator=ExtCallGenerator(attack_block=Op.GAS),
    )

Parametrized Test Cases

This test generates 1 parametrized test case across 2 forks.