()
| 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() { |
nothing calls this directly
no outgoing calls
no test coverage detected