fakeRelease serves a goreleaser-style manifest plus one binary asset; tests plug its URL into the package vars via withReleaseURLs.
| 18 | // fakeRelease serves a goreleaser-style manifest plus one binary asset; |
| 19 | // tests plug its URL into the package vars via withReleaseURLs. |
| 20 | type fakeRelease struct { |
| 21 | srv *httptest.Server |
| 22 | manifest string |
| 23 | binary []byte |
| 24 | asset string |
| 25 | } |
| 26 | |
| 27 | func newFakeRelease(t *testing.T, asset string, body []byte, declared string) *fakeRelease { |
| 28 | t.Helper() |
nothing calls this directly
no outgoing calls
no test coverage detected