MCPcopy Index your code
hub / github.com/codehamr/codehamr / platformAsset

Function platformAsset

internal/update/update_test.go:68–75  ·  view source on GitHub ↗

platformAsset is the asset name Apply expects for the current runtime, via the same assetName helper production uses.

(t *testing.T)

Source from the content-addressed store, hash-verified

66// platformAsset is the asset name Apply expects for the current runtime,
67// via the same assetName helper production uses.
68func platformAsset(t *testing.T) string {
69 t.Helper()
70 asset, ok := assetName(runtime.GOOS, runtime.GOARCH)
71 if !ok {
72 t.Skipf("Apply test skipped: unsupported platform %s/%s", runtime.GOOS, runtime.GOARCH)
73 }
74 return asset
75}
76
77// TestApplyRejectsChecksumMismatch: a binary whose hash doesn't match the
78// manifest must NOT replace the local executable, else a corrupted CDN

Calls 1

assetNameFunction · 0.85

Tested by

no test coverage detected