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

Function TestFindAssets_NoMatch

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

Source from the content-addressed store, hash-verified

233}
234
235func TestFindAssets_NoMatch(t *testing.T) {
236 assets := []Asset{
237 {Name: "chief-linux-amd64", BrowserDownloadURL: "http://example.com/chief-linux-amd64"},
238 }
239
240 binary, _ := findAssets(assets, "windows", "amd64")
241 if binary != nil {
242 t.Error("expected no binary for windows/amd64")
243 }
244}
245
246func TestFindAssets_NoChecksum(t *testing.T) {
247 assets := []Asset{

Callers

nothing calls this directly

Calls 1

findAssetsFunction · 0.85

Tested by

no test coverage detected