MCPcopy Index your code
hub / github.com/coder/coder / TestAdvisorToolPassesNormalQuestion

Function TestAdvisorToolPassesNormalQuestion

coderd/x/chatd/chatadvisor/tool_test.go:197–206  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

195}
196
197func 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
208func TestAdvisorToolPreservesQuestionAtLimit(t *testing.T) {
209 t.Parallel()

Callers

nothing calls this directly

Calls 3

runAdvisorToolFunction · 0.85
EqualMethod · 0.45

Tested by

no test coverage detected