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

Function TestSetCommonFormDataFromValues

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

Source from the content-addressed store, hash-verified

505}
506
507func TestSetCommonFormDataFromValues(t *testing.T) {
508 expectedForm := make(url.Values)
509 gotForm := make(url.Values)
510 expectedForm.Set("test", "test")
511 resp, err := tc().
512 SetCommonFormDataFromValues(expectedForm).
513 R().SetSuccessResult(&gotForm).
514 Post("/form")
515 assertSuccess(t, resp, err)
516 tests.AssertEqual(t, "test", gotForm.Get("test"))
517}
518
519func TestSetCommonFormData(t *testing.T) {
520 form := make(url.Values)

Callers

nothing calls this directly

Calls 8

AssertEqualFunction · 0.92
tcFunction · 0.85
assertSuccessFunction · 0.85
SetSuccessResultMethod · 0.80
RMethod · 0.80
PostMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…