(t *testing.T)
| 475 | } |
| 476 | |
| 477 | func 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 | |
| 491 | func TestComputeMCPToolsDiff_SortedOutput(t *testing.T) { |
| 492 | run1 := &MCPToolUsageData{} |
nothing calls this directly
no test coverage detected