(t *testing.T)
| 559 | } |
| 560 | |
| 561 | func TestClientClone(t *testing.T) { |
| 562 | c1 := tc().DevMode(). |
| 563 | SetCommonHeader("test", "test"). |
| 564 | SetCommonCookies(&http.Cookie{ |
| 565 | Name: "test", |
| 566 | Value: "test", |
| 567 | }).SetCommonQueryParam("test", "test"). |
| 568 | SetCommonPathParam("test", "test"). |
| 569 | SetCommonRetryCount(2). |
| 570 | SetCommonFormData(map[string]string{"test": "test"}). |
| 571 | OnBeforeRequest(func(c *Client, r *Request) error { return nil }) |
| 572 | |
| 573 | c2 := c1.Clone() |
| 574 | assertClone(t, c1, c2) |
| 575 | } |
| 576 | |
| 577 | func TestDisableAutoReadResponse(t *testing.T) { |
| 578 | testWithAllTransport(t, testDisableAutoReadResponse) |
nothing calls this directly
no test coverage detected
searching dependent graphs…