findMCPToolDiffEntry is a test helper to find a tool entry by server and tool name
(entries []MCPToolDiffEntry, serverName, toolName string)
| 360 | |
| 361 | // findMCPToolDiffEntry is a test helper to find a tool entry by server and tool name |
| 362 | func findMCPToolDiffEntry(entries []MCPToolDiffEntry, serverName, toolName string) *MCPToolDiffEntry { |
| 363 | for i := range entries { |
| 364 | if entries[i].ServerName == serverName && entries[i].ToolName == toolName { |
| 365 | return &entries[i] |
| 366 | } |
| 367 | } |
| 368 | return nil |
| 369 | } |
| 370 | |
| 371 | func TestComputeMCPToolsDiff_NewTools(t *testing.T) { |
| 372 | run1 := &MCPToolUsageData{ |
no outgoing calls
no test coverage detected