MCPcopy Index your code
hub / github.com/github/gh-aw / isEmptyMCPToolsDiff

Function isEmptyMCPToolsDiff

pkg/cli/audit_diff_render.go:825–829  ·  view source on GitHub ↗

isEmptyMCPToolsDiff returns true if the MCP tools diff contains no changes

(diff *MCPToolsDiff)

Source from the content-addressed store, hash-verified

823
824// isEmptyMCPToolsDiff returns true if the MCP tools diff contains no changes
825func isEmptyMCPToolsDiff(diff *MCPToolsDiff) bool {
826 return len(diff.NewTools) == 0 &&
827 len(diff.RemovedTools) == 0 &&
828 len(diff.ChangedTools) == 0
829}
830
831// isEmptyAuditDiff returns true if the audit diff contains no changes across all sections
832func isEmptyAuditDiff(diff *AuditDiff) bool {

Callers 5

isEmptyAuditDiffFunction · 0.85
TestIsEmptyMCPToolsDiffFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsEmptyMCPToolsDiffFunction · 0.68