(t *testing.T)
| 56 | } |
| 57 | |
| 58 | func TestCompletionCommand_PowerShell(t *testing.T) { |
| 59 | rootCmd := &cobra.Command{Use: "gh"} |
| 60 | completionCmd := NewCompletionCommand() |
| 61 | rootCmd.AddCommand(completionCmd) |
| 62 | |
| 63 | rootCmd.SetArgs([]string{"completion", "powershell"}) |
| 64 | err := rootCmd.Execute() |
| 65 | |
| 66 | // Just verify no error - the actual script is generated by Cobra |
| 67 | require.NoError(t, err, "PowerShell completion generation should not error") |
| 68 | } |
| 69 | |
| 70 | func TestCompletionCommand_InvalidShell(t *testing.T) { |
| 71 | rootCmd := &cobra.Command{Use: "gh"} |
nothing calls this directly
no test coverage detected