(repositoryID int64, name string)
| 59 | } |
| 60 | |
| 61 | func uploadMatcher(repositoryID int64, name string) httpmock.Matcher { |
| 62 | return httpmock.QueryMatcher("POST", "user-attachments/assets", url.Values{ |
| 63 | "repository_id": []string{strconv.FormatInt(repositoryID, 10)}, |
| 64 | "name": []string{name}, |
| 65 | }) |
| 66 | } |
| 67 | |
| 68 | // UploadStub is one stubbed reply from the asset upload endpoint, named for the |
| 69 | // file it answers for. StubUpload registers one. |
no test coverage detected