MCPcopy Create free account
hub / github.com/codehamr/codehamr / TestCleanupOldNoopWhenMissing

Function TestCleanupOldNoopWhenMissing

internal/update/update_test.go:444–448  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
444func 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

Callers

nothing calls this directly

Calls 1

CleanupOldFunction · 0.85

Tested by

no test coverage detected