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

Function TestCleanupOldSweepsOrphanedTempFiles

internal/update/update_test.go:456–487  ·  view source on GitHub ↗

TestCleanupOldSweepsOrphanedTempFiles: a Ctrl+C mid-download kills the process before Apply's deferred Remove runs (no signal handler exists that early), stranding a multi-MB .codehamr-update-* partial; each retry uses a fresh random suffix, so only a launch-time sweep ever deletes them. Only STALE

(t *testing.T)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

CleanupOldFunction · 0.85

Tested by

no test coverage detected