(t *testing.T)
| 252 | } |
| 253 | |
| 254 | func TestAdvisorToolRejectsMissingRuntime(t *testing.T) { |
| 255 | t.Parallel() |
| 256 | |
| 257 | tool := chatadvisor.Tool(chatadvisor.ToolOptions{ |
| 258 | GetConversationSnapshot: func() []fantasy.Message { |
| 259 | return nil |
| 260 | }, |
| 261 | }) |
| 262 | |
| 263 | resp := runAdvisorTool(t, tool, chatadvisor.AdvisorArgs{Question: "Need advice"}) |
| 264 | require.True(t, resp.IsError) |
| 265 | require.Contains(t, resp.Content, "advisor runtime is not configured") |
| 266 | } |
| 267 | |
| 268 | func TestAdvisorToolRejectsMissingSnapshotFunc(t *testing.T) { |
| 269 | t.Parallel() |
nothing calls this directly
no test coverage detected