MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / test_clear

Function test_clear

tests/knowledge/test_graph.py:34–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32
33
34def test_clear():
35 g = KnowledgeGraph()
36 g.record_from_text("x.py", now=1.0)
37 g.clear()
38 assert g.stats()["total"] == 0
39
40
41def test_load_missing_is_empty(tmp_path):

Callers

nothing calls this directly

Calls 4

record_from_textMethod · 0.95
clearMethod · 0.95
statsMethod · 0.95
KnowledgeGraphClass · 0.90

Tested by

no test coverage detected