(t *testing.T)
| 341 | } |
| 342 | |
| 343 | func TestSetCommonQueryParamsFromStruct(t *testing.T) { |
| 344 | type QueryParams struct { |
| 345 | Test string `url:"test"` |
| 346 | Key string `url:"key"` |
| 347 | } |
| 348 | params := QueryParams{ |
| 349 | Test: "test", |
| 350 | Key: "value", |
| 351 | } |
| 352 | resp, err := tc().SetCommonQueryParamsFromStruct(params).R().Get("/query-parameter") |
| 353 | assertSuccess(t, resp, err) |
| 354 | tests.AssertEqual(t, "key=value&test=test", resp.String()) |
| 355 | } |
| 356 | |
| 357 | func TestInsecureSkipVerify(t *testing.T) { |
| 358 | c := tc().EnableInsecureSkipVerify() |
nothing calls this directly
no test coverage detected
searching dependent graphs…