()
| 1026 | |
| 1027 | #[test] |
| 1028 | fn test_options_chaining() { |
| 1029 | let opts = TreeCollectOptions::new() |
| 1030 | .prefix("src/") |
| 1031 | .include_hidden(false) |
| 1032 | .max_depth(5) |
| 1033 | .collect_directories(true) |
| 1034 | .collect_files(true) |
| 1035 | .exclude("target/"); |
| 1036 | |
| 1037 | assert_eq!(opts.prefix, "src/"); |
| 1038 | assert!(!opts.include_hidden); |
| 1039 | assert_eq!(opts.max_depth, Some(5)); |
| 1040 | assert!(opts.collect_directories); |
| 1041 | assert!(opts.collect_files); |
| 1042 | assert_eq!(opts.exclude_patterns.len(), 1); |
| 1043 | } |
| 1044 | |
| 1045 | #[test] |
| 1046 | fn test_options_matches_prefix_empty() { |
nothing calls this directly
no test coverage detected