platformAsset is the asset name Apply expects for the current runtime, via the same assetName helper production uses.
(t *testing.T)
| 66 | // platformAsset is the asset name Apply expects for the current runtime, |
| 67 | // via the same assetName helper production uses. |
| 68 | func 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 |
no test coverage detected