()
| 470 | |
| 471 | #[test] |
| 472 | fn test_ignore_rules_load_missing_files() { |
| 473 | let temp = TempDir::new().unwrap(); |
| 474 | let rules = IgnoreRules::load(temp.path()); |
| 475 | |
| 476 | // Should not error when files don't exist |
| 477 | assert!(!rules.has_local_rules()); |
| 478 | assert!(!rules.is_ignored(Path::new("anything.txt"), false)); |
| 479 | } |
| 480 | |
| 481 | #[test] |
| 482 | fn test_load_for_enrichment_honors_gitignore_and_ignore() { |