MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / normalize_path_collapses_separators

Function normalize_path_collapses_separators

crates/openshell-core/src/paths.rs:235–239  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

233
234 #[test]
235 fn normalize_path_collapses_separators() {
236 assert_eq!(normalize_path("/usr//lib"), "/usr/lib");
237 assert_eq!(normalize_path("/usr/./lib"), "/usr/lib");
238 assert_eq!(normalize_path("/tmp/"), "/tmp");
239 }
240
241 #[test]
242 fn normalize_path_preserves_parent_dir() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected