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

Function TestComputeMCPToolsDiff_NoChanges

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

Source from the content-addressed store, hash-verified

475}
476
477func TestComputeMCPToolsDiff_NoChanges(t *testing.T) {
478 toolSummary := []MCPToolSummary{
479 {ServerName: "github", ToolName: "issue_read", CallCount: 5, ErrorCount: 0},
480 }
481 run1 := &MCPToolUsageData{Summary: toolSummary}
482 run2 := &MCPToolUsageData{Summary: toolSummary}
483
484 diff := computeMCPToolsDiff(run1, run2)
485
486 assert.Empty(t, diff.NewTools, "Should have no new tools")
487 assert.Empty(t, diff.RemovedTools, "Should have no removed tools")
488 assert.Empty(t, diff.ChangedTools, "Should have no changed tools")
489}
490
491func TestComputeMCPToolsDiff_SortedOutput(t *testing.T) {
492 run1 := &MCPToolUsageData{}

Callers

nothing calls this directly

Calls 1

computeMCPToolsDiffFunction · 0.85

Tested by

no test coverage detected