()
| 267 | |
| 268 | #[test] |
| 269 | fn invalid_magic_detected() { |
| 270 | let mut header = make_header(0, 0); |
| 271 | header.magic = 0xBAD0_F00D; |
| 272 | assert!(matches!( |
| 273 | header.validate(0), |
| 274 | Err(WalError::InvalidMagic { .. }) |
| 275 | )); |
| 276 | } |
| 277 | |
| 278 | #[test] |
| 279 | fn unsupported_version_detected() { |
nothing calls this directly
no test coverage detected