(t *testing.T, actualBody, expectedBody []byte)
| 1246 | } |
| 1247 | } |
| 1248 | |
| 1249 | // nolint: gochecknoglobals |
| 1250 | var ( |
| 1251 | inputPageToken = new("input-token") |
| 1252 | nextPageToken = new("next-page-token") |
| 1253 | badPageToken = new("") |
| 1254 | errTest = errors.New("test error") |
| 1255 | ) |
| 1256 | |
| 1257 | func testJSONResponse(statusCode int, body string) *http.Response { |
| 1258 | // nolint:exhaustruct // WONTFIX - only for test purposes |
| 1259 | return &http.Response{ |
| 1260 | StatusCode: statusCode, |
| 1261 | Header: http.Header{ |
| 1262 | "Content-Type": []string{"application/json"}, |
| 1263 | }, |
| 1264 | Body: io.NopCloser(strings.NewReader(body)), |
| 1265 | } |
no outgoing calls
no test coverage detected