MCPcopy Create free account
hub / github.com/bytebase/bytebase / TestFormatCallOutputError

Function TestFormatCallOutputError

backend/api/mcp/tool_call_test.go:27–43  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

25}
26
27func TestFormatCallOutputError(t *testing.T) {
28 endpoint := &EndpointInfo{
29 OperationID: "test.Operation",
30 Service: "TestService",
31 Method: "Test",
32 }
33
34 output := CallOutput{
35 Status: 404,
36 Error: "not found",
37 }
38
39 result := formatCallOutput(output, endpoint)
40 require.Contains(t, result, "Error")
41 require.Contains(t, result, "404")
42 require.Contains(t, result, "not found")
43}

Callers

nothing calls this directly

Calls 1

formatCallOutputFunction · 0.85

Tested by

no test coverage detected