(t *testing.T, reg *httpmock.Registry, owner, repoName, tagName, sha string)
| 312 | } |
| 313 | |
| 314 | func StubFetchRefSHA(t *testing.T, reg *httpmock.Registry, owner, repoName, tagName, sha string) { |
| 315 | path := fmt.Sprintf("repos/%s/%s/git/ref/tags/%s", owner, repoName, tagName) |
| 316 | reg.Register( |
| 317 | httpmock.REST("GET", path), |
| 318 | httpmock.StringResponse(fmt.Sprintf(`{"object": {"sha": "%s"}}`, sha)), |
| 319 | ) |
| 320 | } |