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

Function TestSetCommonQueryString

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

Source from the content-addressed store, hash-verified

293}
294
295func TestSetCommonQueryString(t *testing.T) {
296 resp, err := tc().SetCommonQueryString("test=test").R().Get("/query-parameter")
297 assertSuccess(t, resp, err)
298 tests.AssertEqual(t, "test=test", resp.String())
299}
300
301func TestSetCommonPathParams(t *testing.T) {
302 c := tc().SetCommonPathParams(map[string]string{"test": "test"})

Callers

nothing calls this directly

Calls 7

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