(t *testing.T)
| 137 | } |
| 138 | |
| 139 | func TestCompletionCommand_ValidArgs(t *testing.T) { |
| 140 | cmd := NewCompletionCommand() |
| 141 | |
| 142 | expectedArgs := []string{"bash", "zsh", "fish", "powershell"} |
| 143 | assert.Equal(t, expectedArgs, cmd.ValidArgs) |
| 144 | } |
| 145 | |
| 146 | // Helper function to find a subcommand by name |
| 147 | func findSubcommand(cmd *cobra.Command, name string) *cobra.Command { |
nothing calls this directly
no test coverage detected