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

Function findDiffEntry

pkg/cli/audit_diff_test.go:352–359  ·  view source on GitHub ↗

findDiffEntry is a test helper to find a domain in a list of diff entries

(entries []DomainDiffEntry, domain string)

Source from the content-addressed store, hash-verified

350
351// findDiffEntry is a test helper to find a domain in a list of diff entries
352func 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
362func findMCPToolDiffEntry(entries []MCPToolDiffEntry, serverName, toolName string) *MCPToolDiffEntry {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected