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

Function TestApplyRestoresBinaryWhenPromoteFails

internal/update/update_test.go:114–147  ·  view source on GitHub ↗

TestApplyRestoresBinaryWhenPromoteFails covers the most dangerous failure: the running binary is moved aside to execPath+".old", then the promote rename fails. Without the restore the user is left with NO executable at execPath. Driven through the promoteRename seam (the one step we can't make fail

(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