Skip to content

test_slotnum()

Documentation for tests/benchmark/compute/instruction/test_block_context.py::test_slotnum@c17999c0.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/benchmark/compute/instruction/test_block_context.py::test_slotnum --gas-benchmark-values 1

Benchmark SLOTNUM instruction.

Source code in tests/benchmark/compute/instruction/test_block_context.py
85
86
87
88
89
90
91
92
@pytest.mark.repricing
@pytest.mark.valid_from("Amsterdam")
def test_slotnum(benchmark_test: BenchmarkTestFiller) -> None:
    """Benchmark SLOTNUM instruction."""
    benchmark_test(
        target_opcode=Op.SLOTNUM,
        code_generator=ExtCallGenerator(attack_block=Op.SLOTNUM),
    )

Parametrized Test Cases

This test generates 1 parametrized test case across 1 fork.