MCPcopy Create free account
hub / github.com/github/gh-aw / findMCPToolDiffEntry

Function findMCPToolDiffEntry

pkg/cli/audit_diff_test.go:362–369  ·  view source on GitHub ↗

findMCPToolDiffEntry is a test helper to find a tool entry by server and tool name

(entries []MCPToolDiffEntry, serverName, toolName string)

Source from the content-addressed store, hash-verified

360
361// findMCPToolDiffEntry is a test helper to find a tool entry by server and tool name
362func 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
371func TestComputeMCPToolsDiff_NewTools(t *testing.T) {
372 run1 := &MCPToolUsageData{

Calls

no outgoing calls

Tested by

no test coverage detected