()
| 1025 | |
| 1026 | #[test] |
| 1027 | fn test_options_exclude() { |
| 1028 | let opts = TreeCollectOptions::new() |
| 1029 | .exclude("target/") |
| 1030 | .exclude(".git/"); |
| 1031 | |
| 1032 | assert_eq!(opts.exclude_patterns.len(), 2); |
| 1033 | assert!(opts.exclude_patterns.contains(&"target/".to_string())); |
| 1034 | assert!(opts.exclude_patterns.contains(&".git/".to_string())); |
| 1035 | } |
| 1036 | |
| 1037 | #[test] |
| 1038 | fn test_options_chaining() { |