diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-16 04:19:43 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-16 04:19:43 +0200 |
| commit | c1f1f77d5dff951be1425a03fff965e0a1065881 (patch) | |
| tree | c649d2af840066d32c35cf602be8487a0888e88f /internal/mcp/server_test.go | |
| parent | 2b3615352c9e31cba00ba8eb98c610fc66f6bc3c (diff) | |
Replace Summary: prefixes with standard Go package doc comments
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/mcp/server_test.go')
| -rw-r--r-- | internal/mcp/server_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/internal/mcp/server_test.go b/internal/mcp/server_test.go index 8e3d7b5..256b324 100644 --- a/internal/mcp/server_test.go +++ b/internal/mcp/server_test.go @@ -1,4 +1,4 @@ -// Summary: Tests for MCP server operations +// Tests for MCP server operations. package mcp import ( @@ -85,27 +85,27 @@ func readResponse(r io.Reader) (*Response, error) { if len(lines) == 0 { return nil, fmt.Errorf("no response data") } - + // Try to find a response (message with an ID) for _, line := range lines { if len(line) == 0 { continue } - + // Quick check if this might be a response (has "id" field) if !strings.Contains(line, `"id"`) { continue // Skip notifications } - + var resp Response if err := json.Unmarshal([]byte(line), &resp); err != nil { continue // Not a valid response, try next line } - + // Valid response found return &resp, nil } - + return nil, fmt.Errorf("no response found in output (only notifications)") } |
