findDiffEntry is a test helper to find a domain in a list of diff entries
(entries []DomainDiffEntry, domain string)
| 350 | |
| 351 | // findDiffEntry is a test helper to find a domain in a list of diff entries |
| 352 | func findDiffEntry(entries []DomainDiffEntry, domain string) *DomainDiffEntry { |
| 353 | for i := range entries { |
| 354 | if entries[i].Domain == domain { |
| 355 | return &entries[i] |
| 356 | } |
| 357 | } |
| 358 | return nil |
| 359 | } |
| 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 { |
no outgoing calls
no test coverage detected