(reg *httpmock.Registry, cb func(params map[string]interface{}))
| 473 | } |
| 474 | |
| 475 | func mockSuccessfulEditResponse(reg *httpmock.Registry, cb func(params map[string]interface{})) { |
| 476 | matcher := httpmock.REST("PATCH", "repos/OWNER/REPO/releases/12345") |
| 477 | responder := httpmock.RESTPayload(201, `{ |
| 478 | "html_url": "https://github.com/OWNER/REPO/releases/tag/v1.2.3" |
| 479 | }`, cb) |
| 480 | reg.Register(matcher, responder) |
| 481 | } |
| 482 | |
| 483 | func boolPtr(b bool) *bool { |
| 484 | return &b |
no test coverage detected