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

Function TestApplyRejectsChecksumMismatch

internal/update/update_test.go:80–106  ·  view source on GitHub ↗

TestApplyRejectsChecksumMismatch: a binary whose hash doesn't match the manifest must NOT replace the local executable, else a corrupted CDN response or a swapped asset installs whatever bytes arrived.

(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