(status int, body string)
| 35 | } |
| 36 | |
| 37 | func response(status int, body string) *http.Response { |
| 38 | return &http.Response{ |
| 39 | StatusCode: status, |
| 40 | Header: make(http.Header), |
| 41 | Body: io.NopCloser(strings.NewReader(body)), |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | func TestPostIncludesJSONAndAuthHeaders(t *testing.T) { |
| 46 | client := newTestClient(t, true, func(req *http.Request) (*http.Response, error) { |
no outgoing calls
no test coverage detected