108 result, err := mcpAnalyzeHandler(context.Background(), req)
109 if err != nil {
110▶ t.Fatalf("mcpAnalyzeHandler returned error: %v", err)
111 }
112 if result.IsError {
· · ·
112▶ if result.IsError {
113 t.Fatalf("mcpAnalyzeHandler returned tool error: %+v", result.Content)
114 }
· · ·
113▶ t.Fatalf("mcpAnalyzeHandler returned tool error: %+v", result.Content)
114 }
115 if len(result.Content) == 0 {
· · ·
139
140// callCoupling invokes the coupling MCP handler with the given arguments and
141▶// returns the result, failing the test on a transport-level (non-tool) error.
142func callCoupling(t *testing.T, args map[string]any) *mcp.CallToolResult {
143 t.Helper()
· · ·
147 res, err := mcpCouplingHandler(context.Background(), req)
148 if err != nil {
149▶ t.Fatalf("handler returned transport error: %v", err)
150 }
151 if res == nil {
+ 15 more matches in this file