()
| 1205 | /// Ensures that [`ExistingAbsoluteDir::new`] creates non-existing, absolute paths. |
| 1206 | #[test] |
| 1207 | fn absolute_dir_new_creates_dir() -> TestResult { |
| 1208 | init_logger(); |
| 1209 | |
| 1210 | let temp_dir = TempDir::new()?; |
| 1211 | let path = temp_dir.path().join("additional"); |
| 1212 | |
| 1213 | if let Err(error) = ExistingAbsoluteDir::new(path) { |
| 1214 | panic!("Failed although it should have succeeded: {error}"); |
| 1215 | } |
| 1216 | |
| 1217 | Ok(()) |
| 1218 | } |
| 1219 | |
| 1220 | /// Ensures that [`ExistingAbsoluteDir::new`] fails on non-absolute paths and those representing |
| 1221 | /// a file. |
nothing calls this directly
no test coverage detected