(t *testing.T)
| 64 | } |
| 65 | |
| 66 | func TestAllowGetMethodPayload(t *testing.T) { |
| 67 | c := tc() |
| 68 | resp, err := c.R().SetBody("test").Get("/payload") |
| 69 | assertSuccess(t, resp, err) |
| 70 | tests.AssertEqual(t, "test", resp.String()) |
| 71 | |
| 72 | c.DisableAllowGetMethodPayload() |
| 73 | resp, err = c.R().SetBody("test").Get("/payload") |
| 74 | assertSuccess(t, resp, err) |
| 75 | tests.AssertEqual(t, "", resp.String()) |
| 76 | |
| 77 | c.EnableAllowGetMethodPayload() |
| 78 | resp, err = c.R().SetBody("test").Get("/payload") |
| 79 | assertSuccess(t, resp, err) |
| 80 | tests.AssertEqual(t, "test", resp.String()) |
| 81 | } |
| 82 | |
| 83 | func TestSetTLSHandshakeTimeout(t *testing.T) { |
| 84 | timeout := 2 * time.Second |
nothing calls this directly
no test coverage detected
searching dependent graphs…