Skip to content

Test Container Validation

Documentation for tests/osaka/eip7692_eof_v1/eip3540_eof_v1/test_container_validation.py@0ed27a0e.

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7692_eof_v1/eip3540_eof_v1/test_container_validation.py --fork Osaka

EOF validation tests for EIP-3540 container format

Test Functions Overview

Name Type Cases (Osaka) Description
test_valid_containers eof_test 8 Test creating various types of valid EOF V1 contracts using legacy
test_invalid_containers eof_test 107 Test creating various types of valid EOF V1 contracts using legacy
test_magic_validation eof_test 30 Verify EOF container 2-byte magic
test_version_validation eof_test 5 Verify EOF container version
test_single_code_section eof_test 4 Verify EOF container maximum number of code sections
test_max_code_sections eof_test 4 Verify EOF container maximum number of code sections