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

Function autoclear_features_v2_ignored

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

Source from the content-addressed store, hash-verified

4265
4266 #[test]
4267 fn autoclear_features_v2_ignored() {
4268 let header = valid_header_v2();
4269 with_basic_file(&header, |mut disk_file: RawFile| {
4270 disk_file.rewind().unwrap();
4271 let qcow = QcowFile::from(disk_file).unwrap();
4272 assert_eq!(qcow.header.version, 2);
4273 assert_eq!(qcow.header.autoclear_features, 0);
4274 });
4275 }
4276
4277 #[test]
4278 fn corrupt_image_rejected_for_write() {

Callers

nothing calls this directly

Calls 2

valid_header_v2Function · 0.85
with_basic_fileFunction · 0.85

Tested by

no test coverage detected