fn test_eif_section_header_from_be_bytes_invalid_section_type()

in src/defs/mod.rs [374:381]


    fn test_eif_section_header_from_be_bytes_invalid_section_type() {
        let mut bytes = [0u8; 12];
        // As there are 6 EIF section types, set the enum index to 6
        // so we get an invalid section to cause the error.
        bytes[1] = 6;

        assert!(EifSectionHeader::from_be_bytes(&bytes).is_err());
    }