MCPcopy Create free account
hub / github.com/codehamr/codehamr / fakeRelease

Struct fakeRelease

internal/update/update_test.go:20–25  ·  view source on GitHub ↗

fakeRelease serves a goreleaser-style manifest plus one binary asset; tests plug its URL into the package vars via withReleaseURLs.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected