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

Function test_ignore_rules_from_file_missing

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

Source from the content-addressed store, hash-verified

703
704 #[test]
705 fn test_ignore_rules_from_file_missing() {
706 let temp = TempDir::new().unwrap();
707 let missing = temp.path().join("missing.ignore");
708
709 let rules = IgnoreRules::from_file(temp.path(), &missing).unwrap();
710
711 // Should not error, just have no rules
712 assert!(!rules.has_local_rules());
713 }
714
715 #[test]
716 fn test_ignore_rules_reload() {

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected