(t *testing.T)
| 77 | } |
| 78 | |
| 79 | func 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 | |
| 88 | func TestGlobal(t *testing.T) { |
| 89 | g := Global() |