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

Function decodeAttachFileResponse

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

Source from the content-addressed store, hash-verified

283}
284
285func decodeAttachFileResponse(t *testing.T, resp fantasy.ToolResponse) attachFileResponse {
286 t.Helper()
287 var result attachFileResponse
288 require.NoError(t, json.Unmarshal([]byte(resp.Content), &result))
289 return result
290}

Callers 1

TestAttachFileFunction · 0.85

Calls 2

HelperMethod · 0.65
UnmarshalMethod · 0.45

Tested by

no test coverage detected