(t *testing.T, rr *httptest.ResponseRecorder, expectedCode int)
| 256 | } |
| 257 | |
| 258 | func assertStatusCode(t *testing.T, rr *httptest.ResponseRecorder, expectedCode int) { |
| 259 | t.Helper() |
| 260 | if rr.Code != expectedCode { |
| 261 | t.Errorf("expected status code %d, got %d", expectedCode, rr.Code) |
| 262 | } |
| 263 | } |
| 264 | |
| 265 | func assertResponseBody(t *testing.T, rr *httptest.ResponseRecorder, expectedBody string) { |
| 266 | t.Helper() |
no outgoing calls
no test coverage detected