()
| 741 | |
| 742 | #[test] |
| 743 | fn test_ignore_rules_pattern_count() { |
| 744 | let temp = TempDir::new().unwrap(); |
| 745 | let ignore_path = temp.path().join(".atomicignore"); |
| 746 | std::fs::write(&ignore_path, "target/\n*.log\nnode_modules\n").unwrap(); |
| 747 | |
| 748 | let rules = IgnoreRules::load(temp.path()); |
| 749 | |
| 750 | assert!(rules.has_local_rules()); |
| 751 | assert_eq!(rules.local_pattern_count(), 3); |
| 752 | } |
| 753 | |
| 754 | #[test] |
| 755 | fn test_ignore_rules_debug_match() { |