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

Function test_ignore_rules_pattern_count

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

Source from the content-addressed store, hash-verified

741
742 #[test]
743 fn test_ignore_rules_pattern_count() {
744 let temp = TempDir::new().unwrap();
745 let ignore_path = temp.path().join(".atomicignore");
746 std::fs::write(&ignore_path, "target/\n*.log\nnode_modules\n").unwrap();
747
748 let rules = IgnoreRules::load(temp.path());
749
750 assert!(rules.has_local_rules());
751 assert_eq!(rules.local_pattern_count(), 3);
752 }
753
754 #[test]
755 fn test_ignore_rules_debug_match() {

Callers

nothing calls this directly

Calls 3

writeFunction · 0.50
unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected