MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_ignore_rules_load_missing_files

Function test_ignore_rules_load_missing_files

atomic-repository/src/ignore.rs:472–479  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected