(t *testing.T, resp *http.Response, err error, expectedBody string)
| 946 | } |
| 947 | |
| 948 | func testBadRequest(t *testing.T, resp *http.Response, err error, expectedBody string) { |
| 949 | assert.Equal(t, http.StatusBadRequest, resp.StatusCode) |
| 950 | assert.Nil(t, err) |
| 951 | buff, err := io.ReadAll(resp.Body) |
| 952 | assert.NoError(t, err) |
| 953 | assert.Equal(t, expectedBody, string(buff)) |
| 954 | } |
| 955 | |
| 956 | func TestAdjustLimit(t *testing.T) { |
| 957 | l, err := adjustLimit(0, 10, 0) |
no test coverage detected