()
| 3384 | |
| 3385 | #[test] |
| 3386 | fn test_header() { |
| 3387 | with_basic_file(&valid_header_v2(), |disk_file: RawFile| { |
| 3388 | let q = QcowFile::from(disk_file).unwrap(); |
| 3389 | assert_eq!(q.virtual_size(), 0x20_0000_0000); |
| 3390 | }); |
| 3391 | with_basic_file(&valid_header_v3(), |disk_file: RawFile| { |
| 3392 | let q = QcowFile::from(disk_file).unwrap(); |
| 3393 | assert_eq!(q.virtual_size(), 0x20_0000_0000); |
| 3394 | }); |
| 3395 | } |
| 3396 | |
| 3397 | #[test] |
| 3398 | fn read_small_buffer() { |
nothing calls this directly
no test coverage detected