MCPcopy Create free account
hub / github.com/cli/cli / testUploader

Function testUploader

internal/attachments/attach_test.go:27–33  ·  view source on GitHub ↗
(reg *httpmock.Registry)

Source from the content-addressed store, hash-verified

25}
26
27func testUploader(reg *httpmock.Registry) *Uploader {
28 return &Uploader{
29 client: api.NewClientFromHTTP(&http.Client{Transport: reg}),
30 host: "github.com",
31 targetRepository: 1234,
32 }
33}
34
35func TestUploaderUploadAndAttach(t *testing.T) {
36 // Each upload response is consumed in the order the assets were

Calls 1

NewClientFromHTTPFunction · 0.92

Tested by

no test coverage detected