(t *testing.T)
| 319 | } |
| 320 | |
| 321 | func TestModelsListCommand_NoCredentials(t *testing.T) { |
| 322 | t.Parallel() |
| 323 | |
| 324 | // No provider keys — only DMR should remain as fallback. |
| 325 | var buf bytes.Buffer |
| 326 | cmd := newModelsCmd(withTestConfig(map[string]string{})) |
| 327 | cmd.SetOut(&buf) |
| 328 | cmd.SetErr(&buf) |
| 329 | cmd.SetArgs(nil) |
| 330 | |
| 331 | require.NoError(t, cmd.Execute()) |
| 332 | |
| 333 | // DMR is always available as fallback |
| 334 | assert.Contains(t, buf.String(), "dmr") |
| 335 | } |
nothing calls this directly
no test coverage detected