(t *testing.T)
| 92 | } |
| 93 | |
| 94 | func TestCompletionCommand_InstallSubcommand(t *testing.T) { |
| 95 | cmd := NewCompletionCommand() |
| 96 | |
| 97 | // Verify install subcommand exists |
| 98 | installCmd := findSubcommand(cmd, "install") |
| 99 | require.NotNil(t, installCmd, "install subcommand should exist") |
| 100 | |
| 101 | assert.Equal(t, "install", installCmd.Name()) |
| 102 | assert.Equal(t, "Install shell completion for the detected shell", installCmd.Short) |
| 103 | assert.Contains(t, installCmd.Long, "Automatically install shell completion") |
| 104 | } |
| 105 | |
| 106 | func TestCompletionCommand_UninstallSubcommand(t *testing.T) { |
| 107 | cmd := NewCompletionCommand() |
nothing calls this directly
no test coverage detected