(t *testing.T)
| 489 | } |
| 490 | |
| 491 | func TestRenderTableUsesAgentHeader(t *testing.T) { |
| 492 | ios, _, stdout, _ := iostreams.Test() |
| 493 | ios.SetStdoutTTY(true) |
| 494 | |
| 495 | err := renderTable(ios, []listedSkill{{ |
| 496 | skillName: "git-commit", |
| 497 | agentHostIDs: []string{"github-copilot", "cursor"}, |
| 498 | scope: "project", |
| 499 | source: "monalisa/skills-repo", |
| 500 | version: "v1.0.0", |
| 501 | }}) |
| 502 | |
| 503 | require.NoError(t, err) |
| 504 | assert.Contains(t, stdout.String(), "AGENT") |
| 505 | assert.Contains(t, stdout.String(), "github-copilot, cursor") |
| 506 | assert.NotContains(t, stdout.String(), "HOST") |
| 507 | } |
| 508 | |
| 509 | func writeSkill(t *testing.T, baseDir, relDir, content string) { |
| 510 | t.Helper() |
nothing calls this directly
no test coverage detected