()
| 753 | |
| 754 | #[test] |
| 755 | fn test_ignore_rules_debug_match() { |
| 756 | let temp = TempDir::new().unwrap(); |
| 757 | let ignore_path = temp.path().join(".atomicignore"); |
| 758 | std::fs::write(&ignore_path, "node_modules\n").unwrap(); |
| 759 | |
| 760 | let rules = IgnoreRules::load(temp.path()); |
| 761 | |
| 762 | let debug_output = rules.debug_match(Path::new("node_modules/foo.js"), false); |
| 763 | assert!(debug_output.contains("Local rules loaded: true")); |
| 764 | assert!(debug_output.contains("Final is_ignored: true")); |
| 765 | } |
| 766 | |
| 767 | #[test] |
| 768 | fn test_ignore_rules_default() { |
nothing calls this directly
no test coverage detected