Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
34
def
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
41
def
test_load_missing_is_empty(tmp_path):
Callers
nothing calls this directly
Calls
4
record_from_text
Method · 0.95
clear
Method · 0.95
stats
Method · 0.95
KnowledgeGraph
Class · 0.90
Tested by
no test coverage detected