(t *testing.T, rec *httptest.ResponseRecorder, code int, json string)
| 74 | } |
| 75 | |
| 76 | func assertJSONResponse(t *testing.T, rec *httptest.ResponseRecorder, code int, json string) { |
| 77 | bytes, _ := io.ReadAll(rec.Body) |
| 78 | assert.Equal(t, code, rec.Code) |
| 79 | assert.JSONEq(t, json, string(bytes)) |
| 80 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…