()
| 237 | |
| 238 | #[test] |
| 239 | fn detect_raw_image() { |
| 240 | let tmp = TempFile::new().unwrap(); |
| 241 | tmp.as_file().set_len(1 << 20).unwrap(); |
| 242 | let path = tmp.as_path().to_owned(); |
| 243 | let options = default_options(&path); |
| 244 | let opened = open_disk(&options).unwrap(); |
| 245 | assert_eq!(opened.image_type, ImageType::Raw); |
| 246 | } |
| 247 | |
| 248 | #[test] |
| 249 | fn detect_qcow2_image() { |
nothing calls this directly
no test coverage detected