()
| 1063 | |
| 1064 | #[test] |
| 1065 | fn test_options_is_excluded() { |
| 1066 | let opts = TreeCollectOptions::new() |
| 1067 | .exclude("target/") |
| 1068 | .exclude(".git/"); |
| 1069 | |
| 1070 | assert!(opts.is_excluded("target/debug/main")); |
| 1071 | assert!(opts.is_excluded(".git/config")); |
| 1072 | assert!(!opts.is_excluded("src/main.rs")); |
| 1073 | } |
| 1074 | |
| 1075 | #[test] |
| 1076 | fn test_options_is_hidden_name() { |