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

Method test_collision

tests/test_patch.py:25–27  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23 self.assertEqual(self.test_file.read_text(), "LINE 1\nline 2\nline 2\nline 3")
24
25 def test_collision(self):
26 res = tool_patch_file(str(self.test_file), "line 2", "LINE 2")
27 self.assertIn("[ERROR] String found 2 times", res)
28
29 def test_not_found(self):
30 res = tool_patch_file(str(self.test_file), "missing", "whatever")

Callers

nothing calls this directly

Calls 1

tool_patch_fileFunction · 0.90

Tested by

no test coverage detected