MCPcopy Create free account
hub / github.com/github/gh-aw / TestCompletionCommand_ValidArgs

Function TestCompletionCommand_ValidArgs

pkg/cli/completion_command_test.go:139–144  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

137}
138
139func TestCompletionCommand_ValidArgs(t *testing.T) {
140 cmd := NewCompletionCommand()
141
142 expectedArgs := []string{"bash", "zsh", "fish", "powershell"}
143 assert.Equal(t, expectedArgs, cmd.ValidArgs)
144}
145
146// Helper function to find a subcommand by name
147func findSubcommand(cmd *cobra.Command, name string) *cobra.Command {

Callers

nothing calls this directly

Calls 1

NewCompletionCommandFunction · 0.85

Tested by

no test coverage detected