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

Function TestApplyKeepsPreviousBinaryAsOld

internal/update/update_test.go:393–424  ·  view source on GitHub ↗

TestApplyKeepsPreviousBinaryAsOld is the cross-platform-parity guard: Apply must rename execPath aside to execPath+".old" before moving the new download in, never replace it directly. Windows requires this (MoveFileEx with REPLACE_EXISTING fails against a running .exe's sharing lock), and the same r

(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 5

platformAssetFunction · 0.85
newFakeReleaseFunction · 0.85
hashOfFunction · 0.85
withReleaseURLsFunction · 0.85
ApplyFunction · 0.85

Tested by

no test coverage detected