TestCleanupOldNoopWhenMissing: cleanup must be silent (no error/log/panic) when there is no .old file, the steady state once an update has settled.
(t *testing.T)
| 442 | // TestCleanupOldNoopWhenMissing: cleanup must be silent (no error/log/panic) |
| 443 | // when there is no .old file, the steady state once an update has settled. |
| 444 | func TestCleanupOldNoopWhenMissing(t *testing.T) { |
| 445 | tmpDir := t.TempDir() |
| 446 | exec := filepath.Join(tmpDir, "codehamr") |
| 447 | CleanupOld(exec) // must not panic, must not log |
| 448 | } |
| 449 | |
| 450 | // TestCleanupOldSweepsOrphanedTempFiles: a Ctrl+C mid-download kills the |
| 451 | // process before Apply's deferred Remove runs (no signal handler exists that |
nothing calls this directly
no test coverage detected