MCPcopy Create free account
hub / github.com/archlinux/alpm / absolute_dir_new_creates_dir

Function absolute_dir_new_creates_dir

alpm-package/src/package.rs:1207–1218  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 3

init_loggerFunction · 0.70
joinMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected