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

Function TestSetCommonFormData

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

Source from the content-addressed store, hash-verified

517}
518
519func TestSetCommonFormData(t *testing.T) {
520 form := make(url.Values)
521 resp, err := tc().
522 SetCommonFormData(
523 map[string]string{
524 "test": "test",
525 }).R().
526 SetSuccessResult(&form).
527 Post("/form")
528 assertSuccess(t, resp, err)
529 tests.AssertEqual(t, "test", form.Get("test"))
530}
531
532func TestSetMultipartBoundaryFunc(t *testing.T) {
533 delimiter := "test-delimiter"

Callers

nothing calls this directly

Calls 8

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