Searched refs:BadMagic (Results 1 – 6 of 6) sorted by relevance
31 BadMagic, enumerator
245 return Err(MetadataParseError::BadMagic); in validate()459 Err(MetadataParseError::BadMagic) in test_slot_block_parse_bad_magic()
126 return Err(MetadataParseError::BadMagic); in validate()351 assert_eq!(AbrData::validate(abr.as_bytes()), Err(MetadataParseError::BadMagic)); in test_slot_block_parse_bad_magic()
170 Err(ZbiError::BadMagic) in is_valid()361 return Err(ZbiError::BadMagic); in parse()1139 BadMagic, enumerator1167 ZbiError::BadMagic => "Bad magic", in fmt()1496 assert_eq!(ZbiContainer::parse(&buffer.0[..]), Err(ZbiError::BadMagic)) in zbi_test_container_parse_bad_magic()1661 assert_eq!(ZbiContainer::parse(&buffer.0[..]), Err(ZbiError::BadMagic)); in zbi_test_container_parse_bad_first_entry_marked()1674 assert_eq!(ZbiContainer::parse(&buffer.0[..]), Err(ZbiError::BadMagic)); in zbi_test_container_parse_bad_entry_magic()
37 BadMagic, enumerator263 return Err(Error::BadMagic); in deserialize()
157 Error::BadMagic | Error::BadChecksum | Error::InvalidData => { in unpack_result()