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

Function TestAddCommonQueryParam

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

Source from the content-addressed store, hash-verified

311}
312
313func TestAddCommonQueryParam(t *testing.T) {
314 resp, err := tc().
315 AddCommonQueryParam("test", "1").
316 AddCommonQueryParam("test", "2").
317 R().Get("/query-parameter")
318 assertSuccess(t, resp, err)
319 tests.AssertEqual(t, "test=1&test=2", resp.String())
320}
321
322func TestSetCommonQueryParam(t *testing.T) {
323 resp, err := tc().SetCommonQueryParam("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
AddCommonQueryParamMethod · 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…