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

Function TestParseMemoryInvocation_Aliases

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

Source from the content-addressed store, hash-verified

122}
123
124func TestParseMemoryInvocation_Aliases(t *testing.T) {
125 for _, alias := range []string{"add", "store", "note"} {
126 cmd, _, err := parseMemoryInvocation([]string{`{"cmd":"` + alias + `","args":{}}`})
127 if err != nil || cmd != "remember" {
128 t.Errorf("alias %q -> (%q,%v), want remember", alias, cmd, err)
129 }
130 }
131}
132
133func TestParseProfileFields(t *testing.T) {
134 // Wrapped form.

Callers

nothing calls this directly

Calls 2

parseMemoryInvocationFunction · 0.85
ErrorfMethod · 0.80

Tested by

no test coverage detected