(t *testing.T)
| 77 | } |
| 78 | |
| 79 | func TestRESTGetDelete(t *testing.T) { |
| 80 | http := &httpmock.Registry{} |
| 81 | client := newTestClient(http) |
| 82 | |
| 83 | http.Register( |
| 84 | httpmock.REST("DELETE", "applications/CLIENTID/grant"), |
| 85 | httpmock.StatusStringResponse(204, "{}"), |
| 86 | ) |
| 87 | |
| 88 | r := bytes.NewReader([]byte(`{}`)) |
| 89 | err := client.REST("github.com", "DELETE", "applications/CLIENTID/grant", r, nil) |
| 90 | assert.NoError(t, err) |
| 91 | } |
| 92 | |
| 93 | func TestRESTWithFullURL(t *testing.T) { |
| 94 | http := &httpmock.Registry{} |
nothing calls this directly
no test coverage detected