(t *testing.T)
| 122 | } |
| 123 | |
| 124 | func 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 | |
| 133 | func TestParseProfileFields(t *testing.T) { |
| 134 | // Wrapped form. |
nothing calls this directly
no test coverage detected