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

Function findToolCallDiffEntry

pkg/cli/audit_diff_test.go:1458–1465  ·  view source on GitHub ↗

findToolCallDiffEntry is a test helper to find a tool entry by name

(entries []ToolCallDiffEntry, name string)

Source from the content-addressed store, hash-verified

1456
1457// findToolCallDiffEntry is a test helper to find a tool entry by name
1458func findToolCallDiffEntry(entries []ToolCallDiffEntry, name string) *ToolCallDiffEntry {
1459 for i := range entries {
1460 if entries[i].Name == name {
1461 return &entries[i]
1462 }
1463 }
1464 return nil
1465}

Calls

no outgoing calls

Tested by

no test coverage detected