(t *testing.T)
| 42 | } |
| 43 | |
| 44 | func TestHTTPErrorResponseWithValidRequest(t *testing.T) { |
| 45 | testHTTPErrorResponse(t, http.MethodPost, contentType, "", 0) |
| 46 | } |
| 47 | |
| 48 | func testHTTPErrorResponse(t *testing.T, method, contentType, body string, expected int) { |
| 49 | request := httptest.NewRequest(method, "http://url.com", strings.NewReader(body)) |
nothing calls this directly
no test coverage detected