()
| 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() { |