(t *testing.T, c *Client)
| 687 | } |
| 688 | |
| 689 | func testPathParam(t *testing.T, c *Client) { |
| 690 | username := "imroc" |
| 691 | resp, err := c.R(). |
| 692 | SetPathParam("username", username). |
| 693 | Get("/user/{username}/profile") |
| 694 | assertSuccess(t, resp, err) |
| 695 | tests.AssertEqual(t, fmt.Sprintf("%s's profile", username), resp.String()) |
| 696 | } |
| 697 | |
| 698 | func TestSuccess(t *testing.T) { |
| 699 | testWithAllTransport(t, testSuccess) |
no test coverage detected
searching dependent graphs…