(t *testing.T, app *App, url, method string)
| 69 | } |
| 70 | |
| 71 | func testStatus200(t *testing.T, app *App, url, method string) { |
| 72 | t.Helper() |
| 73 | |
| 74 | req := httptest.NewRequest(method, url, http.NoBody) |
| 75 | |
| 76 | resp, err := app.Test(req) |
| 77 | require.NoError(t, err, "app.Test(req)") |
| 78 | require.Equal(t, 200, resp.StatusCode, "Status code") |
| 79 | } |
| 80 | |
| 81 | func testErrorResponse(t *testing.T, err error, resp *http.Response, expectedBodyError string) { |
| 82 | t.Helper() |
no test coverage detected