(status int, ctype, body string)
| 22 | func (f tutorialsRoundTrip) RoundTrip(r *http.Request) (*http.Response, error) { return f(r) } |
| 23 | |
| 24 | func tutorialsResponse(status int, ctype, body string) *http.Response { |
| 25 | return &http.Response{ |
| 26 | StatusCode: status, |
| 27 | Header: http.Header{"Content-Type": {ctype}}, |
| 28 | Body: io.NopCloser(strings.NewReader(body)), |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | const tutorialsTestCatalog = `{ |
| 33 | "version": 1, |
no outgoing calls
no test coverage detected