()
| 350 | |
| 351 | #[test] |
| 352 | fn test_invalid_magic_error() { |
| 353 | let err = FormatError::InvalidMagic { |
| 354 | got: [0x00, 0x01, 0x02, 0x03], |
| 355 | }; |
| 356 | let msg = err.to_string(); |
| 357 | assert!(msg.contains("invalid magic bytes")); |
| 358 | assert!(msg.contains("[0, 1, 2, 3]")); |
| 359 | } |
| 360 | |
| 361 | #[test] |
| 362 | fn test_unsupported_version_error() { |
nothing calls this directly
no outgoing calls
no test coverage detected