MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / normalize_matches_node_posix

Function normalize_matches_node_posix

codegraph-kernel/src/ruby.rs:1219–1226  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1217
1218 #[test]
1219 fn normalize_matches_node_posix() {
1220 assert_eq!(posix_normalize("lib/foo/../bar/baz"), "lib/bar/baz");
1221 assert_eq!(posix_normalize("../x/./y"), "../x/y");
1222 assert_eq!(posix_normalize("a/../.."), "..");
1223 assert_eq!(posix_normalize("./foo/bar"), "foo/bar");
1224 assert_eq!(posix_normalize("a//b"), "a/b");
1225 assert_eq!(posix_normalize("a/b/"), "a/b/");
1226 }
1227}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected