(t *testing.T)
| 88 | } |
| 89 | |
| 90 | func TestCommandIsPickable(t *testing.T) { |
| 91 | cli := newProviderTestCLI("OPENAI", []string{"OPENAI", "CLAUDEAI"}) |
| 92 | |
| 93 | if !cli.commandIsPickable("/provider") { |
| 94 | t.Error("/provider should be pickable — it offers concrete provider options") |
| 95 | } |
| 96 | for _, m := range []string{"/agent", "/run", "/coder", "/plan"} { |
| 97 | if cli.commandIsPickable(m) { |
| 98 | t.Errorf("mode-switch %q must never be pickable", m) |
| 99 | } |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | func TestRunRequestedPaletteNoop(t *testing.T) { |
| 104 | cli := newProviderTestCLI("OPENAI", []string{"OPENAI"}) |
nothing calls this directly
no test coverage detected