(repositoryID int64, name string)
| 79 | } |
| 80 | |
| 81 | func uploadMatcher(repositoryID int64, name string) httpmock.Matcher { |
| 82 | return httpmock.QueryMatcher("POST", "user-attachments/assets", url.Values{ |
| 83 | "repository_id": []string{strconv.FormatInt(repositoryID, 10)}, |
| 84 | "name": []string{name}, |
| 85 | }) |
| 86 | } |
| 87 | |
| 88 | // UploadStub is one stubbed reply from the asset upload endpoint, named for the |
| 89 | // file it answers for. StubUpload registers one. |
no test coverage detected