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

Function testUploader

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

Source from the content-addressed store, hash-verified

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

Calls 1

NewClientFromHTTPFunction · 0.92

Tested by

no test coverage detected