()
| 467 | |
| 468 | #[test] |
| 469 | fn test_config_with_ignore_pattern() { |
| 470 | let config = WatcherConfig::new("/repo") |
| 471 | .with_ignore_pattern("build/") |
| 472 | .with_ignore_pattern("*.tmp"); |
| 473 | |
| 474 | let patterns = config.ignore_patterns(); |
| 475 | assert_eq!(patterns.len(), 3); |
| 476 | assert!(patterns.contains(&".atomic".to_string())); |
| 477 | assert!(patterns.contains(&"build/".to_string())); |
| 478 | assert!(patterns.contains(&"*.tmp".to_string())); |
| 479 | } |
| 480 | |
| 481 | #[test] |
| 482 | fn test_config_with_ignore_pattern_chaining() { |
nothing calls this directly
no test coverage detected