MCPcopy Index your code
hub / github.com/imroc/req / TestSetCommonQueryParamsFromValues

Function TestSetCommonQueryParamsFromValues

client_test.go:334–341  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

332}
333
334func TestSetCommonQueryParamsFromValues(t *testing.T) {
335 values := url.Values{}
336 values.Add("test", "test")
337 values.Add("key", "value")
338 resp, err := tc().SetCommonQueryParamsFromValues(values).R().Get("/query-parameter")
339 assertSuccess(t, resp, err)
340 tests.AssertEqual(t, "key=value&test=test", resp.String())
341}
342
343func TestSetCommonQueryParamsFromStruct(t *testing.T) {
344 type QueryParams struct {

Callers

nothing calls this directly

Calls 8

AssertEqualFunction · 0.92
tcFunction · 0.85
assertSuccessFunction · 0.85
AddMethod · 0.80
RMethod · 0.80
GetMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…