()
| 2749 | |
| 2750 | #[test] |
| 2751 | fn invalid_magic() { |
| 2752 | let invalid_header = vec![0x51u8, 0x46, 0x4a, 0xfb]; |
| 2753 | with_basic_file(&invalid_header, |mut disk_file: RawFile| { |
| 2754 | QcowHeader::new(&mut disk_file).expect_err("Invalid header worked."); |
| 2755 | }); |
| 2756 | } |
| 2757 | |
| 2758 | #[test] |
| 2759 | fn invalid_refcount_order() { |
nothing calls this directly
no test coverage detected