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

Function TestSetCommonQueryParams

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

Source from the content-addressed store, hash-verified

326}
327
328func TestSetCommonQueryParams(t *testing.T) {
329 resp, err := tc().SetCommonQueryParams(map[string]string{"test": "test"}).R().Get("/query-parameter")
330 assertSuccess(t, resp, err)
331 tests.AssertEqual(t, "test=test", resp.String())
332}
333
334func TestSetCommonQueryParamsFromValues(t *testing.T) {
335 values := url.Values{}

Callers

nothing calls this directly

Calls 7

AssertEqualFunction · 0.92
tcFunction · 0.85
assertSuccessFunction · 0.85
RMethod · 0.80
SetCommonQueryParamsMethod · 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…