()
| 1036 | |
| 1037 | #[test] |
| 1038 | fn test_options_chaining() { |
| 1039 | let opts = TreeCollectOptions::new() |
| 1040 | .prefix("src/") |
| 1041 | .include_hidden(false) |
| 1042 | .max_depth(5) |
| 1043 | .collect_directories(true) |
| 1044 | .collect_files(true) |
| 1045 | .exclude("target/"); |
| 1046 | |
| 1047 | assert_eq!(opts.prefix, "src/"); |
| 1048 | assert!(!opts.include_hidden); |
| 1049 | assert_eq!(opts.max_depth, Some(5)); |
| 1050 | assert!(opts.collect_directories); |
| 1051 | assert!(opts.collect_files); |
| 1052 | assert_eq!(opts.exclude_patterns.len(), 1); |
| 1053 | } |
| 1054 | |
| 1055 | #[test] |
| 1056 | fn test_options_matches_prefix_empty() { |
nothing calls this directly
no test coverage detected