()
| 1015 | |
| 1016 | #[test] |
| 1017 | fn test_options_exclude() { |
| 1018 | let opts = TreeCollectOptions::new() |
| 1019 | .exclude("target/") |
| 1020 | .exclude(".git/"); |
| 1021 | |
| 1022 | assert_eq!(opts.exclude_patterns.len(), 2); |
| 1023 | assert!(opts.exclude_patterns.contains(&"target/".to_string())); |
| 1024 | assert!(opts.exclude_patterns.contains(&".git/".to_string())); |
| 1025 | } |
| 1026 | |
| 1027 | #[test] |
| 1028 | fn test_options_chaining() { |