(t *testing.T)
| 44 | } |
| 45 | |
| 46 | func TestCompletionCommand_Fish(t *testing.T) { |
| 47 | rootCmd := &cobra.Command{Use: "gh"} |
| 48 | completionCmd := NewCompletionCommand() |
| 49 | rootCmd.AddCommand(completionCmd) |
| 50 | |
| 51 | rootCmd.SetArgs([]string{"completion", "fish"}) |
| 52 | err := rootCmd.Execute() |
| 53 | |
| 54 | // Just verify no error - the actual script is generated by Cobra |
| 55 | require.NoError(t, err, "Fish completion generation should not error") |
| 56 | } |
| 57 | |
| 58 | func TestCompletionCommand_PowerShell(t *testing.T) { |
| 59 | rootCmd := &cobra.Command{Use: "gh"} |
nothing calls this directly
no test coverage detected