(t *testing.T)
| 220 | } |
| 221 | |
| 222 | func TestUninstallBashCompletionNotFound(t *testing.T) { |
| 223 | // Create a temporary home directory without completion file |
| 224 | tmpDir := t.TempDir() |
| 225 | originalHome := os.Getenv("HOME") |
| 226 | defer os.Setenv("HOME", originalHome) |
| 227 | os.Setenv("HOME", tmpDir) |
| 228 | |
| 229 | // Uninstall should fail when no file found |
| 230 | err := uninstallBashCompletion(false) |
| 231 | require.Error(t, err) |
| 232 | assert.Contains(t, err.Error(), "no bash completion file found") |
| 233 | } |
| 234 | |
| 235 | func TestUninstallZshCompletion(t *testing.T) { |
| 236 | // Create a temporary home directory |
nothing calls this directly
no test coverage detected