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

Function test_ignore_rules_empty

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

Source from the content-addressed store, hash-verified

459
460 #[test]
461 fn test_ignore_rules_empty() {
462 let temp = TempDir::new().unwrap();
463 let rules = IgnoreRules::empty(temp.path());
464
465 assert!(!rules.has_local_rules());
466 assert!(!rules.has_global_rules());
467 assert!(!rules.is_ignored(Path::new("src/main.rs"), false));
468 assert!(!rules.is_ignored(Path::new("target/debug"), true));
469 }
470
471 #[test]
472 fn test_ignore_rules_load_missing_files() {

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected