()
| 1073 | |
| 1074 | #[test] |
| 1075 | fn test_options_is_excluded() { |
| 1076 | let opts = TreeCollectOptions::new() |
| 1077 | .exclude("target/") |
| 1078 | .exclude(".git/"); |
| 1079 | |
| 1080 | assert!(opts.is_excluded("target/debug/main")); |
| 1081 | assert!(opts.is_excluded(".git/config")); |
| 1082 | assert!(!opts.is_excluded("src/main.rs")); |
| 1083 | } |
| 1084 | |
| 1085 | #[test] |
| 1086 | fn test_options_is_hidden_name() { |