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

Function invalid_refcount_order

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

Source from the content-addressed store, hash-verified

2757
2758 #[test]
2759 fn invalid_refcount_order() {
2760 let mut header = valid_header_v3();
2761 header[99] = 7;
2762 with_basic_file(&header, |disk_file: RawFile| {
2763 QcowFile::from(disk_file).expect_err("Invalid refcount order worked.");
2764 });
2765 }
2766
2767 /// Test all valid refcount orders (0-6) can be opened.
2768 #[test]

Callers

nothing calls this directly

Calls 2

valid_header_v3Function · 0.85
with_basic_fileFunction · 0.85

Tested by

no test coverage detected