MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / test_add_protected_file

Method test_add_protected_file

tests/test_memory.py:159–164  ·  view source on GitHub ↗

Add file with explicit protected flag.

(self)

Source from the content-addressed store, hash-verified

157 self.pm = ProjectMemory()
158
159 def test_add_protected_file(self):
160 """Add file with explicit protected flag."""
161 self.pm.add("CODEY.md", "content", is_protected=True)
162 self.assertTrue(self.pm.is_tracked("CODEY.md"))
163 protected = self.pm.get_protected_files()
164 self.assertIn("CODEY.md", protected)
165
166 def test_add_auto_protected_by_pattern(self):
167 """Files matching protected patterns should be auto-protected."""

Callers

nothing calls this directly

Calls 3

is_trackedMethod · 0.80
get_protected_filesMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected