(t *testing.T)
| 32 | } |
| 33 | |
| 34 | func TestCompletionCommand_Zsh(t *testing.T) { |
| 35 | rootCmd := &cobra.Command{Use: "gh"} |
| 36 | completionCmd := NewCompletionCommand() |
| 37 | rootCmd.AddCommand(completionCmd) |
| 38 | |
| 39 | rootCmd.SetArgs([]string{"completion", "zsh"}) |
| 40 | err := rootCmd.Execute() |
| 41 | |
| 42 | // Just verify no error - the actual script is generated by Cobra |
| 43 | require.NoError(t, err, "Zsh completion generation should not error") |
| 44 | } |
| 45 | |
| 46 | func TestCompletionCommand_Fish(t *testing.T) { |
| 47 | rootCmd := &cobra.Command{Use: "gh"} |
nothing calls this directly
no test coverage detected