(t *testing.T, c *Client)
| 579 | } |
| 580 | |
| 581 | func testDisableAutoReadResponse(t *testing.T, c *Client) { |
| 582 | c.DisableAutoReadResponse() |
| 583 | resp, err := c.R().Get("/") |
| 584 | assertSuccess(t, resp, err) |
| 585 | tests.AssertEqual(t, "", resp.String()) |
| 586 | result, err := resp.ToString() |
| 587 | tests.AssertNoError(t, err) |
| 588 | tests.AssertEqual(t, "TestGet: text response", result) |
| 589 | |
| 590 | resp, err = c.R().Get("/") |
| 591 | assertSuccess(t, resp, err) |
| 592 | _, err = io.ReadAll(resp.Body) |
| 593 | tests.AssertNoError(t, err) |
| 594 | } |
| 595 | |
| 596 | func testEnableDumpAll(t *testing.T, fn func(c *Client) (de dumpExpected)) { |
| 597 | testDump := func(c *Client) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…