()
| 341 | |
| 342 | #[test] |
| 343 | fn test_config_with_ignore_pattern() { |
| 344 | let config = WatcherConfig::new("/repo") |
| 345 | .with_ignore_pattern("build/") |
| 346 | .with_ignore_pattern("*.tmp"); |
| 347 | |
| 348 | let patterns = config.ignore_patterns(); |
| 349 | assert_eq!(patterns.len(), 3); |
| 350 | assert!(patterns.contains(&".atomic".to_string())); |
| 351 | assert!(patterns.contains(&"build/".to_string())); |
| 352 | assert!(patterns.contains(&"*.tmp".to_string())); |
| 353 | } |
| 354 | |
| 355 | #[test] |
| 356 | fn test_config_with_ignore_pattern_chaining() { |
nothing calls this directly
no test coverage detected