MCPcopy Create free account
hub / github.com/diillson/chatcli / TestCommandIsPickable

Function TestCommandIsPickable

cli/provider_command_test.go:90–101  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

88}
89
90func 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
103func TestRunRequestedPaletteNoop(t *testing.T) {
104 cli := newProviderTestCLI("OPENAI", []string{"OPENAI"})

Callers

nothing calls this directly

Calls 4

newProviderTestCLIFunction · 0.85
commandIsPickableMethod · 0.80
ErrorfMethod · 0.80
ErrorMethod · 0.65

Tested by

no test coverage detected