()
| 199 | const TEST_SIZE: u64 = 0x5566_7788; |
| 200 | |
| 201 | fn make_qcow_file() -> File { |
| 202 | let temp_file = TempFile::new().unwrap(); |
| 203 | { |
| 204 | let raw = RawFile::new(temp_file.as_file().try_clone().unwrap(), false); |
| 205 | QcowFile::new(raw, 3, TEST_SIZE, true).unwrap(); |
| 206 | } |
| 207 | temp_file.into_file() |
| 208 | } |
| 209 | |
| 210 | #[test] |
| 211 | fn new_sync_returns_correct_size() { |