Skip to content

test_eof_validity()

Documentation for tests/osaka/eip7692_eof_v1/eip4750_functions/test_code_validation.py::test_eof_validity@b48d1dc8.

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7692_eof_v1/eip4750_functions/test_code_validation.py::test_eof_validity --fork Osaka

Test EOF container validation for features around EIP-4750 / Functions / Code Sections.

Source code in tests/osaka/eip7692_eof_v1/eip4750_functions/test_code_validation.py
373
374
375
376
377
378
379
380
381
382
383
@pytest.mark.parametrize(
    "container",
    [*VALID, *INVALID],
    ids=container_name,
)
def test_eof_validity(
    eof_test: EOFTestFiller,
    container: Container,
):
    """Test EOF container validation for features around EIP-4750 / Functions / Code Sections."""
    eof_test(container=container)

Parametrized Test Cases

The interactive table below is also available as a standalone page.

Test ID (Abbreviated) container
...fork_Osaka-eof_test-retf_stack_validation_0 retf_stack_validation_0
...fork_Osaka-eof_test-retf_stack_validation_3 retf_stack_validation_3
...fork_Osaka-eof_test-retf_code_input_output retf_code_input_output
...fork_Osaka-eof_test-stack_height_equal_code_outputs_retf_zero_stop stack_height_equal_code_outputs_retf_zero_stop
...fork_Osaka-eof_test-callf_max_code_sections_1 callf_max_code_sections_1
...fork_Osaka-eof_test-callf_max_code_sections_2 callf_max_code_sections_2
...fork_Osaka-eof_test-retf_stack_validation_1 retf_stack_validation_1
...fork_Osaka-eof_test-retf_variable_stack_0 retf_variable_stack_0
...fork_Osaka-eof_test-retf_variable_stack_1 retf_variable_stack_1
...fork_Osaka-eof_test-retf_variable_stack_4 retf_variable_stack_4
...fork_Osaka-eof_test-callf_inputs_underflow_0 callf_inputs_underflow_0
...fork_Osaka-eof_test-code_inputs_underflow_1 code_inputs_underflow_1
...fork_Osaka-eof_test-code_inputs_underflow_2 code_inputs_underflow_2
...fork_Osaka-eof_test-callf_inputs_underflow callf_inputs_underflow
...fork_Osaka-eof_test-retf_stack_validation_2 retf_stack_validation_2
...fork_Osaka-eof_test-retf_variable_stack_2 retf_variable_stack_2
...fork_Osaka-eof_test-retf_variable_stack_5 retf_variable_stack_5
...fork_Osaka-eof_test-retf_variable_stack_6 retf_variable_stack_6
...fork_Osaka-eof_test-retf_variable_stack_3 retf_variable_stack_3
...fork_Osaka-eof_test-stack_higher_than_code_outputs stack_higher_than_code_outputs
...fork_Osaka-eof_test-stack_shorter_than_code_outputs stack_shorter_than_code_outputs
...fork_Osaka-eof_test-stack_shorter_than_code_outputs_1 stack_shorter_than_code_outputs_1
...fork_Osaka-eof_test-stack_shorter_than_code_outputs_2 stack_shorter_than_code_outputs_2
...fork_Osaka-eof_test-overflow_code_sections_1 overflow_code_sections_1
...fork_Osaka-state_test_from_eof_test-retf_stack_validation_0 retf_stack_validation_0
...fork_Osaka-state_test_from_eof_test-retf_stack_validation_3 retf_stack_validation_3
...fork_Osaka-state_test_from_eof_test-retf_code_input_output retf_code_input_output
...fork_Osaka-state_test_from_eof_test-stack_height_equal_code_outputs_retf_zero_stop stack_height_equal_code_outputs_retf_zero_stop
...fork_Osaka-state_test_from_eof_test-callf_max_code_sections_1 callf_max_code_sections_1
...fork_Osaka-state_test_from_eof_test-callf_max_code_sections_2 callf_max_code_sections_2
...fork_Osaka-state_test_from_eof_test-retf_stack_validation_1 retf_stack_validation_1
...fork_Osaka-state_test_from_eof_test-retf_variable_stack_0 retf_variable_stack_0
...fork_Osaka-state_test_from_eof_test-retf_variable_stack_1 retf_variable_stack_1
...fork_Osaka-state_test_from_eof_test-retf_variable_stack_4 retf_variable_stack_4
...fork_Osaka-state_test_from_eof_test-callf_inputs_underflow_0 callf_inputs_underflow_0
...fork_Osaka-state_test_from_eof_test-code_inputs_underflow_1 code_inputs_underflow_1
...fork_Osaka-state_test_from_eof_test-code_inputs_underflow_2 code_inputs_underflow_2
...fork_Osaka-state_test_from_eof_test-callf_inputs_underflow callf_inputs_underflow
...fork_Osaka-state_test_from_eof_test-retf_stack_validation_2 retf_stack_validation_2
...fork_Osaka-state_test_from_eof_test-retf_variable_stack_2 retf_variable_stack_2
...fork_Osaka-state_test_from_eof_test-retf_variable_stack_5 retf_variable_stack_5
...fork_Osaka-state_test_from_eof_test-retf_variable_stack_6 retf_variable_stack_6
...fork_Osaka-state_test_from_eof_test-retf_variable_stack_3 retf_variable_stack_3
...fork_Osaka-state_test_from_eof_test-stack_higher_than_code_outputs stack_higher_than_code_outputs
...fork_Osaka-state_test_from_eof_test-stack_shorter_than_code_outputs stack_shorter_than_code_outputs
...fork_Osaka-state_test_from_eof_test-stack_shorter_than_code_outputs_1 stack_shorter_than_code_outputs_1
...fork_Osaka-state_test_from_eof_test-stack_shorter_than_code_outputs_2 stack_shorter_than_code_outputs_2
...fork_Osaka-state_test_from_eof_test-overflow_code_sections_1 overflow_code_sections_1
...fork_Osaka-blockchain_test_from_eof_test-retf_stack_validation_0 retf_stack_validation_0
...fork_Osaka-blockchain_test_from_eof_test-retf_stack_validation_3 retf_stack_validation_3
...fork_Osaka-blockchain_test_from_eof_test-retf_code_input_output retf_code_input_output
...fork_Osaka-blockchain_test_from_eof_test-stack_height_equal_code_outputs_retf_zero_stop stack_height_equal_code_outputs_retf_zero_stop
...fork_Osaka-blockchain_test_from_eof_test-callf_max_code_sections_1 callf_max_code_sections_1
...fork_Osaka-blockchain_test_from_eof_test-callf_max_code_sections_2 callf_max_code_sections_2
...fork_Osaka-blockchain_test_from_eof_test-retf_stack_validation_1 retf_stack_validation_1
...fork_Osaka-blockchain_test_from_eof_test-retf_variable_stack_0 retf_variable_stack_0
...fork_Osaka-blockchain_test_from_eof_test-retf_variable_stack_1 retf_variable_stack_1
...fork_Osaka-blockchain_test_from_eof_test-retf_variable_stack_4 retf_variable_stack_4
...fork_Osaka-blockchain_test_from_eof_test-callf_inputs_underflow_0 callf_inputs_underflow_0
...fork_Osaka-blockchain_test_from_eof_test-code_inputs_underflow_1 code_inputs_underflow_1
...fork_Osaka-blockchain_test_from_eof_test-code_inputs_underflow_2 code_inputs_underflow_2
...fork_Osaka-blockchain_test_from_eof_test-callf_inputs_underflow callf_inputs_underflow
...fork_Osaka-blockchain_test_from_eof_test-retf_stack_validation_2 retf_stack_validation_2
...fork_Osaka-blockchain_test_from_eof_test-retf_variable_stack_2 retf_variable_stack_2
...fork_Osaka-blockchain_test_from_eof_test-retf_variable_stack_5 retf_variable_stack_5
...fork_Osaka-blockchain_test_from_eof_test-retf_variable_stack_6 retf_variable_stack_6
...fork_Osaka-blockchain_test_from_eof_test-retf_variable_stack_3 retf_variable_stack_3
...fork_Osaka-blockchain_test_from_eof_test-stack_higher_than_code_outputs stack_higher_than_code_outputs
...fork_Osaka-blockchain_test_from_eof_test-stack_shorter_than_code_outputs stack_shorter_than_code_outputs
...fork_Osaka-blockchain_test_from_eof_test-stack_shorter_than_code_outputs_1 stack_shorter_than_code_outputs_1
...fork_Osaka-blockchain_test_from_eof_test-stack_shorter_than_code_outputs_2 stack_shorter_than_code_outputs_2
...fork_Osaka-blockchain_test_from_eof_test-overflow_code_sections_1 overflow_code_sections_1