MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / invalid_magic

Function invalid_magic

block/src/qcow/mod.rs:2751–2756  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 2

with_basic_fileFunction · 0.85
newFunction · 0.85

Tested by

no test coverage detected