MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / TestClear

Function TestClear

internal/observedtools/store_test.go:79–86  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

77}
78
79func TestClear(t *testing.T) {
80 s := NewStore()
81 s.Record([]byte(`{"tools": [{"name": "Bash", "input_schema": {}}]}`), "claude")
82 s.Clear()
83 if tools := s.List(); len(tools) != 0 {
84 t.Errorf("expected 0 tools after clear, got %d", len(tools))
85 }
86}
87
88func TestGlobal(t *testing.T) {
89 g := Global()

Callers

nothing calls this directly

Calls 4

RecordMethod · 0.95
ClearMethod · 0.95
ListMethod · 0.95
NewStoreFunction · 0.85

Tested by

no test coverage detected