MCPcopy
hub / github.com/github/github-mcp-server / getErrorResult

Function getErrorResult

pkg/github/helper_test.go:398–402  ·  view source on GitHub ↗
(t *testing.T, result *mcp.CallToolResult)

Source from the content-addressed store, hash-verified

396}
397
398func getErrorResult(t *testing.T, result *mcp.CallToolResult) *mcp.TextContent {
399 res := getTextResult(t, result)
400 require.True(t, result.IsError, "expected tool call result to be an error")
401 return res
402}
403
404// getTextResourceResult is a helper function that returns a text result from a tool call.
405

Calls 1

getTextResultFunction · 0.85

Tested by

no test coverage detected