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

Function normalize_matches_node_posix

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

Source from the content-addressed store, hash-verified

1209
1210 #[test]
1211 fn normalize_matches_node_posix() {
1212 assert_eq!(posix_normalize("lib/foo/../bar/baz"), "lib/bar/baz");
1213 assert_eq!(posix_normalize("../x/./y"), "../x/y");
1214 assert_eq!(posix_normalize("a/../.."), "..");
1215 assert_eq!(posix_normalize("./foo/bar"), "foo/bar");
1216 assert_eq!(posix_normalize("a//b"), "a/b");
1217 assert_eq!(posix_normalize("a/b/"), "a/b/");
1218 }
1219}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected