(r *sling.Sling)
| 37 | } |
| 38 | |
| 39 | func 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 | |
| 52 | func Unmarshal(data []byte, to interface{}) { |
| 53 | Expect(json.Unmarshal(data, to)).To(BeNil()) |
no outgoing calls
no test coverage detected