MCPcopy Create free account
hub / github.com/coder/coder / responseName

Function responseName

coderd/x/chatd/chattool/skill_test.go:28–36  ·  view source on GitHub ↗
(t *testing.T, resp fantasy.ToolResponse)

Source from the content-addressed store, hash-verified

26}
27
28func responseName(t *testing.T, resp fantasy.ToolResponse) string {
29 t.Helper()
30
31 var payload struct {
32 Name string `json:"name"`
33 }
34 require.NoError(t, json.Unmarshal([]byte(resp.Content), &payload))
35 return payload.Name
36}
37
38func TestFormatResolvedSkillIndex(t *testing.T) {
39 t.Parallel()

Callers 1

TestReadSkillToolFunction · 0.85

Calls 2

HelperMethod · 0.65
UnmarshalMethod · 0.45

Tested by

no test coverage detected