Test Function: test_migrated_valid_invalid()

Verify EOF container construction and exception.

Back to test_migrated_valid_invalid().

Parametrized Test Cases

Test ID (Abbreviated) eof_code exception
...fork_Osaka-eof_test-EOF1V3540_0001_deployed_code_without_data_section EOF1V3540_0001 None
...fork_Osaka-eof_test-EOF1V3540_0002_deployed_code_with_data_section EOF1V3540_0002 None
...fork_Osaka-eof_test-EOF1I3540_0012_empty_code_section_with_non_empty_data_section b'\xef\x00\x01\x01\x00\x04\x02\x00\x01\x00\x00\x04\x00\x02\x00\x00\x00\x00\x00\xaa\xbb' EOFException.ZERO_SECTION_SIZE
...fork_Osaka-eof_test-EOF1I3540_0020_no_section_terminator_after_data_section_size 0xef00010100040200010001040002 EOFException.MISSING_HEADERS_TERMINATOR
...fork_Osaka-eof_test-EOF1I3540_0021_no_type_section_contents 0xef0001010004020001000104000200 EOFException.INVALID_SECTION_BODIES_SIZE
...fork_Osaka-eof_test-EOF1I3540_0022_invalid_type_section_no_outputs_and_max_stack 0xef000101000402000100010400020000 EOFException.INVALID_SECTION_BODIES_SIZE
...fork_Osaka-eof_test-EOF1I3540_0023_invalid_type_section_no_max_stack 0xef00010100040200010001040002000000 EOFException.INVALID_SECTION_BODIES_SIZE
...fork_Osaka-eof_test-EOF1I3540_0024_invalid_type_section_max_stack_incomplete 0xef0001010004020001000104000200000000 EOFException.INVALID_SECTION_BODIES_SIZE
...fork_Osaka-eof_test-EOF1I3540_0025_no_code_section_contents 0xef000101000402000100010400020000000000 EOFException.INVALID_SECTION_BODIES_SIZE
...fork_Osaka-eof_test-EOF1I3540_0026_code_section_contents_incomplete 0xef0001010004020001002904000000000000027f EOFException.INVALID_SECTION_BODIES_SIZE
...fork_Osaka-eof_test-EOF1I3540_0027_trailing_bytes_after_code_section 0xef000101000402000100010400000000800000feaabbcc EOFException.INVALID_SECTION_BODIES_SIZE
...fork_Osaka-eof_test-EOF1I3540_0027_trailing_bytes_after_code_section_with_wrong_first_section_type 0xef000101000402000100010400000000000000feaabbcc [, ]
...fork_Osaka-eof_test-EOF1I3540_0028_empty_code_section 0xef000101000402000100000400000000000000 EOFException.ZERO_SECTION_SIZE
...fork_Osaka-eof_test-EOF1I3540_0030_code_section_preceding_type_section 0xef000102000100010100040400020000000000feaabb [, ]
...fork_Osaka-eof_test-EOF1I3540_0031_data_section_preceding_type_section 0xef000104000201000402000100010000000000feaabb [, ]
...fork_Osaka-eof_test-EOF1I3540_0032_data_section_preceding_code_section 0xef000101000404000202000100010000000000feaabb [, ]
...fork_Osaka-eof_test-EOF1I3540_0033_data_section_without_code_section 0xef00010100040400020000000000aabb [, ]
...fork_Osaka-eof_test-EOF1I3540_0034_no_data_section 0xef000101000402000100010000000000fe [, ]
...fork_Osaka-eof_test-EOF1I3540_0035_trailing_bytes_after_data_section b'\xef\x00\x01\x01\x00\x04\x02\x00\x01\x00\x01\x04\x00\x02\x00\x00\x80\x00\x00\xfe\xaa\xbb\xcc\xdd' EOFException.INVALID_SECTION_BODIES_SIZE
...fork_Osaka-eof_test-EOF1I3540_0035_trailing_bytes_after_data_section_with_wrong_first_section_type 0xef000101000402000100010400020000000000feaabbccdd [, ]
...fork_Osaka-eof_test-EOF1I3540_0036_multiple_data_sections 0xef000101000402000100010400020400020000000000feaabbaabb [, ]
...fork_Osaka-eof_test-EOF1I3540_0037_multiple_code_and_data_sections 0xef000101000802000200010001040002040002000000000000000000fefeaabbaabb [, ]
...fork_Osaka-eof_test-EOF1I3540_0038_unknown_section_id_at_the_beginning_05 0xef000105000101000402000100010400000000000000fe [, ]
...fork_Osaka-eof_test-EOF1I3540_0039_unknown_section_id_at_the_beginning_06 0xef000106000101000402000100010400000000000000fe [, ]
...fork_Osaka-eof_test-EOF1I3540_0040_unknown_section_id_at_the_beginning_ff 0xef0001ff000101000402000100010400000000000000fe [, ]
...fork_Osaka-eof_test-EOF1I3540_0041_unknown_section_id_after_types_section_05 0xef000101000405000102000100010400000000000000fe [, ]
...fork_Osaka-eof_test-EOF1I3540_0042_unknown_section_id_after_types_section_06 0xef000101000406000102000100010400000000000000fe [, ]
...fork_Osaka-eof_test-EOF1I3540_0043_unknown_section_id_after_types_section_ff 0xef0001010004ff000102000100010400000000000000fe [, ]
...fork_Osaka-eof_test-EOF1I3540_0044_unknown_section_id_after_code_section_05 0xef000101000402000100010500010400000000000000fe [, ]
...fork_Osaka-eof_test-EOF1I3540_0045_unknown_section_id_after_code_section_06 0xef000101000402000100010600010400000000000000fe [, ]
...fork_Osaka-eof_test-EOF1I3540_0046_unknown_section_id_after_code_section_ff 0xef00010100040200010001ff00010400000000000000fe [, ]
...fork_Osaka-eof_test-EOF1I3540_0047_unknown_section_id_after_data_section_05 0xef000101000402000100010400000500010000000000fe [, ]
...fork_Osaka-eof_test-EOF1I3540_0048_unknown_section_id_after_data_section_06 0xef000101000402000100010400000600010000000000fe [, ]
...fork_Osaka-eof_test-EOF1I3540_0049_unknown_section_id_after_data_section_ff 0xef00010100040200010001040000ff00010000000000fe [, ]
...fork_Osaka-eof_test-EOF1I3540_0002_invalid_incorrect_magic_01 EOF1I3540_0002 (Invalid) Invalid magic EOFException.INVALID_MAGIC
...fork_Osaka-eof_test-EOF1I3540_0003_invalid_incorrect_magic_02 EOF1I3540_0003 EOFException.INVALID_MAGIC
...fork_Osaka-eof_test-EOF1I3540_0004_invalid_incorrect_magic_ff EOF1I3540_0004 EOFException.INVALID_MAGIC
...fork_Osaka-eof_test-EOF1I3540_0006_invalid_incorrect_version_00 EOF1I3540_0006 (Invalid) Invalid version EOFException.INVALID_VERSION
...fork_Osaka-eof_test-EOF1I3540_0007_invalid_incorrect_version_02 EOF1I3540_0007 EOFException.INVALID_VERSION
...fork_Osaka-eof_test-EOF1I3540_0008_invalid_incorrect_version_ff EOF1I3540_0008 EOFException.INVALID_VERSION
...fork_Osaka-state_test_from_eof_test-EOF1V3540_0001_deployed_code_without_data_section EOF1V3540_0001 None
...fork_Osaka-state_test_from_eof_test-EOF1V3540_0002_deployed_code_with_data_section EOF1V3540_0002 None
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0012_empty_code_section_with_non_empty_data_section b'\xef\x00\x01\x01\x00\x04\x02\x00\x01\x00\x00\x04\x00\x02\x00\x00\x00\x00\x00\xaa\xbb' EOFException.ZERO_SECTION_SIZE
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0020_no_section_terminator_after_data_section_size 0xef00010100040200010001040002 EOFException.MISSING_HEADERS_TERMINATOR
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0021_no_type_section_contents 0xef0001010004020001000104000200 EOFException.INVALID_SECTION_BODIES_SIZE
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0022_invalid_type_section_no_outputs_and_max_stack 0xef000101000402000100010400020000 EOFException.INVALID_SECTION_BODIES_SIZE
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0023_invalid_type_section_no_max_stack 0xef00010100040200010001040002000000 EOFException.INVALID_SECTION_BODIES_SIZE
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0024_invalid_type_section_max_stack_incomplete 0xef0001010004020001000104000200000000 EOFException.INVALID_SECTION_BODIES_SIZE
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0025_no_code_section_contents 0xef000101000402000100010400020000000000 EOFException.INVALID_SECTION_BODIES_SIZE
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0026_code_section_contents_incomplete 0xef0001010004020001002904000000000000027f EOFException.INVALID_SECTION_BODIES_SIZE
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0027_trailing_bytes_after_code_section 0xef000101000402000100010400000000800000feaabbcc EOFException.INVALID_SECTION_BODIES_SIZE
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0027_trailing_bytes_after_code_section_with_wrong_first_section_type 0xef000101000402000100010400000000000000feaabbcc [, ]
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0028_empty_code_section 0xef000101000402000100000400000000000000 EOFException.ZERO_SECTION_SIZE
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0030_code_section_preceding_type_section 0xef000102000100010100040400020000000000feaabb [, ]
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0031_data_section_preceding_type_section 0xef000104000201000402000100010000000000feaabb [, ]
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0032_data_section_preceding_code_section 0xef000101000404000202000100010000000000feaabb [, ]
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0033_data_section_without_code_section 0xef00010100040400020000000000aabb [, ]
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0034_no_data_section 0xef000101000402000100010000000000fe [, ]
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0035_trailing_bytes_after_data_section b'\xef\x00\x01\x01\x00\x04\x02\x00\x01\x00\x01\x04\x00\x02\x00\x00\x80\x00\x00\xfe\xaa\xbb\xcc\xdd' EOFException.INVALID_SECTION_BODIES_SIZE
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0035_trailing_bytes_after_data_section_with_wrong_first_section_type 0xef000101000402000100010400020000000000feaabbccdd [, ]
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0036_multiple_data_sections 0xef000101000402000100010400020400020000000000feaabbaabb [, ]
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0037_multiple_code_and_data_sections 0xef000101000802000200010001040002040002000000000000000000fefeaabbaabb [, ]
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0038_unknown_section_id_at_the_beginning_05 0xef000105000101000402000100010400000000000000fe [, ]
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0039_unknown_section_id_at_the_beginning_06 0xef000106000101000402000100010400000000000000fe [, ]
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0040_unknown_section_id_at_the_beginning_ff 0xef0001ff000101000402000100010400000000000000fe [, ]
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0041_unknown_section_id_after_types_section_05 0xef000101000405000102000100010400000000000000fe [, ]
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0042_unknown_section_id_after_types_section_06 0xef000101000406000102000100010400000000000000fe [, ]
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0043_unknown_section_id_after_types_section_ff 0xef0001010004ff000102000100010400000000000000fe [, ]
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0044_unknown_section_id_after_code_section_05 0xef000101000402000100010500010400000000000000fe [, ]
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0045_unknown_section_id_after_code_section_06 0xef000101000402000100010600010400000000000000fe [, ]
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0046_unknown_section_id_after_code_section_ff 0xef00010100040200010001ff00010400000000000000fe [, ]
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0047_unknown_section_id_after_data_section_05 0xef000101000402000100010400000500010000000000fe [, ]
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0048_unknown_section_id_after_data_section_06 0xef000101000402000100010400000600010000000000fe [, ]
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0049_unknown_section_id_after_data_section_ff 0xef00010100040200010001040000ff00010000000000fe [, ]
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0002_invalid_incorrect_magic_01 EOF1I3540_0002 (Invalid) Invalid magic EOFException.INVALID_MAGIC
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0003_invalid_incorrect_magic_02 EOF1I3540_0003 EOFException.INVALID_MAGIC
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0004_invalid_incorrect_magic_ff EOF1I3540_0004 EOFException.INVALID_MAGIC
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0006_invalid_incorrect_version_00 EOF1I3540_0006 (Invalid) Invalid version EOFException.INVALID_VERSION
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0007_invalid_incorrect_version_02 EOF1I3540_0007 EOFException.INVALID_VERSION
...fork_Osaka-state_test_from_eof_test-EOF1I3540_0008_invalid_incorrect_version_ff EOF1I3540_0008 EOFException.INVALID_VERSION
...fork_Osaka-blockchain_test_from_eof_test-EOF1V3540_0001_deployed_code_without_data_section EOF1V3540_0001 None
...fork_Osaka-blockchain_test_from_eof_test-EOF1V3540_0002_deployed_code_with_data_section EOF1V3540_0002 None
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0012_empty_code_section_with_non_empty_data_section b'\xef\x00\x01\x01\x00\x04\x02\x00\x01\x00\x00\x04\x00\x02\x00\x00\x00\x00\x00\xaa\xbb' EOFException.ZERO_SECTION_SIZE
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0020_no_section_terminator_after_data_section_size 0xef00010100040200010001040002 EOFException.MISSING_HEADERS_TERMINATOR
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0021_no_type_section_contents 0xef0001010004020001000104000200 EOFException.INVALID_SECTION_BODIES_SIZE
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0022_invalid_type_section_no_outputs_and_max_stack 0xef000101000402000100010400020000 EOFException.INVALID_SECTION_BODIES_SIZE
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0023_invalid_type_section_no_max_stack 0xef00010100040200010001040002000000 EOFException.INVALID_SECTION_BODIES_SIZE
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0024_invalid_type_section_max_stack_incomplete 0xef0001010004020001000104000200000000 EOFException.INVALID_SECTION_BODIES_SIZE
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0025_no_code_section_contents 0xef000101000402000100010400020000000000 EOFException.INVALID_SECTION_BODIES_SIZE
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0026_code_section_contents_incomplete 0xef0001010004020001002904000000000000027f EOFException.INVALID_SECTION_BODIES_SIZE
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0027_trailing_bytes_after_code_section 0xef000101000402000100010400000000800000feaabbcc EOFException.INVALID_SECTION_BODIES_SIZE
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0027_trailing_bytes_after_code_section_with_wrong_first_section_type 0xef000101000402000100010400000000000000feaabbcc [, ]
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0028_empty_code_section 0xef000101000402000100000400000000000000 EOFException.ZERO_SECTION_SIZE
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0030_code_section_preceding_type_section 0xef000102000100010100040400020000000000feaabb [, ]
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0031_data_section_preceding_type_section 0xef000104000201000402000100010000000000feaabb [, ]
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0032_data_section_preceding_code_section 0xef000101000404000202000100010000000000feaabb [, ]
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0033_data_section_without_code_section 0xef00010100040400020000000000aabb [, ]
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0034_no_data_section 0xef000101000402000100010000000000fe [, ]
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0035_trailing_bytes_after_data_section b'\xef\x00\x01\x01\x00\x04\x02\x00\x01\x00\x01\x04\x00\x02\x00\x00\x80\x00\x00\xfe\xaa\xbb\xcc\xdd' EOFException.INVALID_SECTION_BODIES_SIZE
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0035_trailing_bytes_after_data_section_with_wrong_first_section_type 0xef000101000402000100010400020000000000feaabbccdd [, ]
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0036_multiple_data_sections 0xef000101000402000100010400020400020000000000feaabbaabb [, ]
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0037_multiple_code_and_data_sections 0xef000101000802000200010001040002040002000000000000000000fefeaabbaabb [, ]
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0038_unknown_section_id_at_the_beginning_05 0xef000105000101000402000100010400000000000000fe [, ]
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0039_unknown_section_id_at_the_beginning_06 0xef000106000101000402000100010400000000000000fe [, ]
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0040_unknown_section_id_at_the_beginning_ff 0xef0001ff000101000402000100010400000000000000fe [, ]
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0041_unknown_section_id_after_types_section_05 0xef000101000405000102000100010400000000000000fe [, ]
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0042_unknown_section_id_after_types_section_06 0xef000101000406000102000100010400000000000000fe [, ]
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0043_unknown_section_id_after_types_section_ff 0xef0001010004ff000102000100010400000000000000fe [, ]
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0044_unknown_section_id_after_code_section_05 0xef000101000402000100010500010400000000000000fe [, ]
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0045_unknown_section_id_after_code_section_06 0xef000101000402000100010600010400000000000000fe [, ]
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0046_unknown_section_id_after_code_section_ff 0xef00010100040200010001ff00010400000000000000fe [, ]
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0047_unknown_section_id_after_data_section_05 0xef000101000402000100010400000500010000000000fe [, ]
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0048_unknown_section_id_after_data_section_06 0xef000101000402000100010400000600010000000000fe [, ]
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0049_unknown_section_id_after_data_section_ff 0xef00010100040200010001040000ff00010000000000fe [, ]
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0002_invalid_incorrect_magic_01 EOF1I3540_0002 (Invalid) Invalid magic EOFException.INVALID_MAGIC
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0003_invalid_incorrect_magic_02 EOF1I3540_0003 EOFException.INVALID_MAGIC
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0004_invalid_incorrect_magic_ff EOF1I3540_0004 EOFException.INVALID_MAGIC
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0006_invalid_incorrect_version_00 EOF1I3540_0006 (Invalid) Invalid version EOFException.INVALID_VERSION
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0007_invalid_incorrect_version_02 EOF1I3540_0007 EOFException.INVALID_VERSION
...fork_Osaka-blockchain_test_from_eof_test-EOF1I3540_0008_invalid_incorrect_version_ff EOF1I3540_0008 EOFException.INVALID_VERSION