MCPcopy Create free account
hub / github.com/diillson/chatcli / TestBuiltinMemory_NoAdapter

Function TestBuiltinMemory_NoAdapter

cli/plugins/builtin_memory_test.go:213–219  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

211}
212
213func TestBuiltinMemory_NoAdapter(t *testing.T) {
214 SetMemoryAdapter(nil)
215 p := NewBuiltinMemoryPlugin()
216 if _, err := p.Execute(context.Background(), []string{`{"cmd":"recall","args":{}}`}); err == nil {
217 t.Error("expected error when no adapter is wired")
218 }
219}

Callers

nothing calls this directly

Calls 4

ExecuteMethod · 0.95
SetMemoryAdapterFunction · 0.85
NewBuiltinMemoryPluginFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected