(reg *httpmock.Registry)
| 25 | } |
| 26 | |
| 27 | func 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 | |
| 35 | func TestUploaderUploadAndAttach(t *testing.T) { |
| 36 | // Each upload response is consumed in the order the assets were |
no test coverage detected