MCPcopy Create free account
hub / github.com/imroc/req / TestEnableDumpTo

Function TestEnableDumpTo

request_test.go:256–261  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

254}
255
256func TestEnableDumpTo(t *testing.T) {
257 buff := new(bytes.Buffer)
258 resp, err := tc().R().EnableDumpTo(buff).Get("/")
259 assertSuccess(t, resp, err)
260 tests.AssertEqual(t, true, buff.Len() > 0)
261}
262
263func TestEnableDumpToFIle(t *testing.T) {
264 tmpFile := "tmp_dumpfile_req"

Callers

nothing calls this directly

Calls 7

AssertEqualFunction · 0.92
tcFunction · 0.85
assertSuccessFunction · 0.85
EnableDumpToMethod · 0.80
RMethod · 0.80
LenMethod · 0.65
GetMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…