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

Function test_options_exceeds_depth

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

Source from the content-addressed store, hash-verified

1105
1106 #[test]
1107 fn test_options_exceeds_depth() {
1108 let opts = TreeCollectOptions::new().max_depth(2);
1109
1110 assert!(!opts.exceeds_depth("file.txt")); // depth 1
1111 assert!(!opts.exceeds_depth("a/b.txt")); // depth 2
1112 assert!(opts.exceeds_depth("a/b/c.txt")); // depth 3
1113 }
1114
1115 #[test]
1116 fn test_options_exceeds_depth_unlimited() {

Callers

nothing calls this directly

Calls 1

max_depthMethod · 0.80

Tested by

no test coverage detected