MCPcopy Create free account
hub / github.com/gavv/httpexpect / httpResponse

Function httpResponse

printer_test.go:28–34  ·  view source on GitHub ↗
(body io.Reader)

Source from the content-addressed store, hash-verified

26}
27
28func httpResponse(body io.Reader) *http.Response {
29 resp := &http.Response{}
30 if body != nil {
31 resp.Body = io.NopCloser(body)
32 }
33 return resp
34}
35
36func TestPrinter_Compact(t *testing.T) {
37 cases := []struct {

Callers 3

TestPrinter_CompactFunction · 0.85
TestPrinter_CurlFunction · 0.85
TestPrinter_DebugFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…