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

Function normalize_path_collapses_separators

crates/openshell-policy/src/lib.rs:2049–2053  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2047
2048 #[test]
2049 fn normalize_path_collapses_separators() {
2050 assert_eq!(normalize_path("/usr//lib"), "/usr/lib");
2051 assert_eq!(normalize_path("/usr/./lib"), "/usr/lib");
2052 assert_eq!(normalize_path("/tmp/"), "/tmp");
2053 }
2054
2055 #[test]
2056 fn normalize_path_preserves_parent_dir() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected