(t *testing.T)
| 304 | } |
| 305 | |
| 306 | func TestUninstallFishCompletionNotFound(t *testing.T) { |
| 307 | // Create a temporary home directory without completion file |
| 308 | tmpDir := t.TempDir() |
| 309 | originalHome := os.Getenv("HOME") |
| 310 | defer os.Setenv("HOME", originalHome) |
| 311 | os.Setenv("HOME", tmpDir) |
| 312 | |
| 313 | // Uninstall should fail when no file found |
| 314 | err := uninstallFishCompletion(false) |
| 315 | require.Error(t, err) |
| 316 | assert.Contains(t, err.Error(), "no fish completion file found") |
| 317 | } |
| 318 | |
| 319 | func TestUninstallShellCompletion(t *testing.T) { |
| 320 | // Save original environment |
nothing calls this directly
no test coverage detected