(t *testing.T)
| 28 | } |
| 29 | |
| 30 | func TestChatMemoryActive_RequiresStore(t *testing.T) { |
| 31 | t.Setenv(chatMemoryEnvVar, "true") |
| 32 | if (&ChatCLI{}).chatMemoryActive() { |
| 33 | t.Error("no memory store must mean inactive") |
| 34 | } |
| 35 | cli := &ChatCLI{memoryStore: workspace.NewMemoryStore(t.TempDir(), zap.NewNop())} |
| 36 | if !cli.chatMemoryActive() { |
| 37 | t.Error("live memory store must activate the exception") |
| 38 | } |
| 39 | t.Setenv(chatMemoryEnvVar, "false") |
| 40 | if cli.chatMemoryActive() { |
| 41 | t.Error("env off must win over a live store") |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | func TestMemoryToolDefinition_Schema(t *testing.T) { |
| 46 | def := memoryToolDefinition() |
nothing calls this directly
no test coverage detected