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

Function with_basic_file

block/src/qcow/mod.rs:2430–2435  ·  view source on GitHub ↗
(header: &[u8], mut testfn: F)

Source from the content-addressed store, hash-verified

2428 }
2429
2430 fn with_basic_file<F>(header: &[u8], mut testfn: F)
2431 where
2432 F: FnMut(RawFile),
2433 {
2434 testfn(basic_file(header)); // File closed when the function exits.
2435 }
2436
2437 fn with_default_file<F>(file_size: u64, direct: bool, mut testfn: F)
2438 where

Callers 15

header_readFunction · 0.85
invalid_magicFunction · 0.85
invalid_refcount_orderFunction · 0.85
refcount_all_ordersFunction · 0.85
invalid_cluster_bitsFunction · 0.85
test_header_huge_fileFunction · 0.85
test_huge_l1_tableFunction · 0.85

Calls 1

basic_fileFunction · 0.85

Tested by 15

header_readFunction · 0.68
invalid_magicFunction · 0.68
invalid_refcount_orderFunction · 0.68
refcount_all_ordersFunction · 0.68
invalid_cluster_bitsFunction · 0.68
test_header_huge_fileFunction · 0.68
test_huge_l1_tableFunction · 0.68