MCPcopy Index your code
hub / github.com/SpectoLabs/hoverfly / doRequest

Function doRequest

functional-tests/functional_tests.go:39–50  ·  view source on GitHub ↗
(r *sling.Sling)

Source from the content-addressed store, hash-verified

37}
38
39func doRequest(r *sling.Sling) (*http.Response, error) {
40 req, err := r.Request()
41 if err != nil {
42 return nil, err
43 }
44 response, err := http.DefaultClient.Do(req)
45 if err != nil {
46 return nil, err
47 }
48
49 return response, nil
50}
51
52func Unmarshal(data []byte, to interface{}) {
53 Expect(json.Unmarshal(data, to)).To(BeNil())

Callers 3

DoRequestFunction · 0.70
StopAPIAuthenticatedMethod · 0.70
getAPITokenMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected