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

Function TestSetCommonQueryParam

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

Source from the content-addressed store, hash-verified

320}
321
322func TestSetCommonQueryParam(t *testing.T) {
323 resp, err := tc().SetCommonQueryParam("test", "test").R().Get("/query-parameter")
324 assertSuccess(t, resp, err)
325 tests.AssertEqual(t, "test=test", resp.String())
326}
327
328func TestSetCommonQueryParams(t *testing.T) {
329 resp, err := tc().SetCommonQueryParams(map[string]string{"test": "test"}).R().Get("/query-parameter")

Callers

nothing calls this directly

Calls 7

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