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

Method test_clear

tests/test_memory.py:115–120  ·  view source on GitHub ↗

Clear should remove all files.

(self)

Source from the content-addressed store, hash-verified

113 self.assertIsNone(self.wm.get("test.py"))
114
115 def test_clear(self):
116 """Clear should remove all files."""
117 self.wm.add("test1.py", "content1", tokens=5)
118 self.wm.add("test2.py", "content2", tokens=5)
119 self.wm.clear()
120 self.assertEqual(len(self.wm._files), 0)
121
122 def test_evict_stale_by_turn(self):
123 """evict_stale should remove files not accessed for LRU_EVICT_AFTER turns."""

Callers

nothing calls this directly

Calls 2

addMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected