(t *testing.T)
| 12 | ) |
| 13 | |
| 14 | func TestDeleteRepo(t *testing.T) { |
| 15 | reg := &httpmock.Registry{} |
| 16 | defer reg.Verify(t) |
| 17 | |
| 18 | reg.Register( |
| 19 | httpmock.REST("DELETE", "repos/OWNER/REPO"), |
| 20 | httpmock.StatusStringResponse(204, ""), |
| 21 | ) |
| 22 | |
| 23 | require.NoError(t, deleteRepo(&http.Client{Transport: reg}, ghrepo.New("OWNER", "REPO"))) |
| 24 | } |
| 25 | |
| 26 | // TestDeleteRepoMissingScope pins the scopes suggestion, which is the reason this call site |
| 27 | // needs the delete_repo scope declared rather than relying on what the API reports. |
nothing calls this directly
no test coverage detected