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

Function TestNewCompletionCommand

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

Source from the content-addressed store, hash-verified

11)
12
13func TestNewCompletionCommand(t *testing.T) {
14 cmd := NewCompletionCommand()
15
16 assert.Equal(t, "completion", cmd.Name())
17 assert.Equal(t, "Generate shell completion scripts for gh aw commands", cmd.Short)
18 assert.Contains(t, cmd.Long, "Tab completion provides")
19 assert.Equal(t, []string{"bash", "zsh", "fish", "powershell"}, cmd.ValidArgs)
20}
21
22func TestCompletionCommand_Bash(t *testing.T) {
23 rootCmd := &cobra.Command{Use: "gh"}

Callers

nothing calls this directly

Calls 1

NewCompletionCommandFunction · 0.85

Tested by

no test coverage detected