(t *testing.T)
| 11 | ) |
| 12 | |
| 13 | func 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 | |
| 22 | func TestCompletionCommand_Bash(t *testing.T) { |
| 23 | rootCmd := &cobra.Command{Use: "gh"} |
nothing calls this directly
no test coverage detected