MCPcopy Create free account
hub / github.com/Nariod/RustPacker / test_absolute_path_already_absolute

Function test_absolute_path_already_absolute

src/tools.rs:154–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152
153 #[test]
154 fn test_absolute_path_already_absolute() {
155 let path = if cfg!(windows) {
156 Path::new("C:\\tmp\\test")
157 } else {
158 Path::new("/tmp/test")
159 };
160 let result = absolute_path(path).unwrap();
161 assert!(result.is_absolute());
162 assert_eq!(result, path);
163 }
164
165 #[test]
166 fn test_absolute_path_relative() {

Callers

nothing calls this directly

Calls 1

absolute_pathFunction · 0.85

Tested by

no test coverage detected