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:1117–1123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1115
1116 #[test]
1117 fn test_options_exceeds_depth() {
1118 let opts = TreeCollectOptions::new().max_depth(2);
1119
1120 assert!(!opts.exceeds_depth("file.txt")); // depth 1
1121 assert!(!opts.exceeds_depth("a/b.txt")); // depth 2
1122 assert!(opts.exceeds_depth("a/b/c.txt")); // depth 3
1123 }
1124
1125 #[test]
1126 fn test_options_exceeds_depth_unlimited() {

Callers

nothing calls this directly

Calls 1

max_depthMethod · 0.80

Tested by

no test coverage detected