(t *testing.T)
| 63 | } |
| 64 | |
| 65 | func TestModelsListCommand_DefaultOutput(t *testing.T) { |
| 66 | t.Parallel() |
| 67 | |
| 68 | var buf bytes.Buffer |
| 69 | cmd := newModelsCmd(withTestConfig(map[string]string{"ANTHROPIC_API_KEY": "test-key"})) |
| 70 | cmd.SetOut(&buf) |
| 71 | cmd.SetErr(&buf) |
| 72 | cmd.SetArgs(nil) |
| 73 | |
| 74 | require.NoError(t, cmd.Execute()) |
| 75 | |
| 76 | output := buf.String() |
| 77 | assert.Contains(t, output, "PROVIDER") |
| 78 | assert.Contains(t, output, "MODEL") |
| 79 | assert.Contains(t, output, "anthropic") |
| 80 | // A catalog-only model must appear, proving the injected store was read. |
| 81 | assert.Contains(t, output, catalogOnlyModel) |
| 82 | } |
| 83 | |
| 84 | func TestModelsListCommand_ProviderFilter(t *testing.T) { |
| 85 | t.Parallel() |
nothing calls this directly
no test coverage detected