MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / TestFindAssets_NoChecksum

Function TestFindAssets_NoChecksum

internal/update/update_test.go:246–258  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

244}
245
246func TestFindAssets_NoChecksum(t *testing.T) {
247 assets := []Asset{
248 {Name: "chief-linux-amd64", BrowserDownloadURL: "http://example.com/chief-linux-amd64"},
249 }
250
251 binary, checksum := findAssets(assets, "linux", "amd64")
252 if binary == nil {
253 t.Fatal("expected to find binary")
254 }
255 if checksum != nil {
256 t.Error("expected no checksum")
257 }
258}
259
260func TestCheckWritePermission_Success(t *testing.T) {
261 dir := t.TempDir()

Callers

nothing calls this directly

Calls 1

findAssetsFunction · 0.85

Tested by

no test coverage detected