(t *testing.T)
| 195 | } |
| 196 | |
| 197 | func TestAdvisorToolPassesNormalQuestion(t *testing.T) { |
| 198 | t.Parallel() |
| 199 | |
| 200 | var capturedQuestion string |
| 201 | tool := advisorToolCapturingQuestion(t, &capturedQuestion) |
| 202 | |
| 203 | resp := runAdvisorTool(t, tool, chatadvisor.AdvisorArgs{Question: "What's safest?"}) |
| 204 | require.False(t, resp.IsError) |
| 205 | require.Equal(t, "What's safest?", capturedQuestion) |
| 206 | } |
| 207 | |
| 208 | func TestAdvisorToolPreservesQuestionAtLimit(t *testing.T) { |
| 209 | t.Parallel() |
nothing calls this directly
no test coverage detected