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

Function refcount_all_orders

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

Source from the content-addressed store, hash-verified

2767 /// Test all valid refcount orders (0-6) can be opened.
2768 #[test]
2769 fn refcount_all_orders() {
2770 for order in 0..=6u8 {
2771 let mut header = valid_header_v3();
2772 header[99] = order;
2773 with_basic_file(&header, |disk_file: RawFile| {
2774 QcowFile::from(disk_file).expect("refcount order should work");
2775 });
2776 }
2777 }
2778
2779 /// Test write/read roundtrip for all refcount orders.
2780 #[test]

Callers

nothing calls this directly

Calls 2

valid_header_v3Function · 0.85
with_basic_fileFunction · 0.85

Tested by

no test coverage detected