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

Function TestIsEmptyMCPToolsDiff

pkg/cli/audit_diff_test.go:708–713  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

706}
707
708func TestIsEmptyMCPToolsDiff(t *testing.T) {
709 assert.True(t, isEmptyMCPToolsDiff(&MCPToolsDiff{}), "Empty MCPToolsDiff should be detected")
710 assert.False(t, isEmptyMCPToolsDiff(&MCPToolsDiff{
711 NewTools: []MCPToolDiffEntry{{ToolName: "test"}},
712 }), "Non-empty MCPToolsDiff should not be detected as empty")
713}
714
715func TestIsEmptyAuditDiff(t *testing.T) {
716 assert.True(t, isEmptyAuditDiff(&AuditDiff{}), "Empty AuditDiff should be detected")

Callers

nothing calls this directly

Calls 1

isEmptyMCPToolsDiffFunction · 0.85

Tested by

no test coverage detected