MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_options_path_depth

Function test_options_path_depth

atomic-core/src/output/repo/tree.rs:1108–1114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1106
1107 #[test]
1108 fn test_options_path_depth() {
1109 assert_eq!(TreeCollectOptions::path_depth(""), 0);
1110 assert_eq!(TreeCollectOptions::path_depth("file.txt"), 1);
1111 assert_eq!(TreeCollectOptions::path_depth("src/main.rs"), 2);
1112 assert_eq!(TreeCollectOptions::path_depth("a/b/c/d.rs"), 4);
1113 assert_eq!(TreeCollectOptions::path_depth("a/b/c/"), 3);
1114 }
1115
1116 #[test]
1117 fn test_options_exceeds_depth() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected