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

Function test_ignore_rules_debug_match

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

Source from the content-addressed store, hash-verified

753
754 #[test]
755 fn test_ignore_rules_debug_match() {
756 let temp = TempDir::new().unwrap();
757 let ignore_path = temp.path().join(".atomicignore");
758 std::fs::write(&ignore_path, "node_modules\n").unwrap();
759
760 let rules = IgnoreRules::load(temp.path());
761
762 let debug_output = rules.debug_match(Path::new("node_modules/foo.js"), false);
763 assert!(debug_output.contains("Local rules loaded: true"));
764 assert!(debug_output.contains("Final is_ignored: true"));
765 }
766
767 #[test]
768 fn test_ignore_rules_default() {

Callers

nothing calls this directly

Calls 4

debug_matchMethod · 0.80
writeFunction · 0.50
unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected