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

Function TestApplyReportsRestoreFailure

internal/update/update_test.go:154–181  ·  view source on GitHub ↗

TestApplyReportsRestoreFailure covers the doubly-bad path: the promote rename fails AND the restore of the moved-aside binary also fails. Apply must surface the restore failure (not just the promote one) so the message reflects reality: execPath is now empty. Forced by occupying execPath with a dire

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

platformAssetFunction · 0.85
newFakeReleaseFunction · 0.85
hashOfFunction · 0.85
withReleaseURLsFunction · 0.85
ApplyFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected