(t *testing.T, expectedCallCount, actualCallCount int, methodName string, mockCacher *MockRawBytesDataCacher)
| 1262 | "Content-Type": []string{"application/json"}, |
| 1263 | }, |
| 1264 | Body: io.NopCloser(strings.NewReader(body)), |
| 1265 | } |
| 1266 | } |
| 1267 | |
| 1268 | func assertStatusCode(t *testing.T, actual, expected int) { |
| 1269 | if actual != expected { |
| 1270 | t.Errorf("expected status code %d. received %d", expected, actual) |
| 1271 | } |
| 1272 | } |
| 1273 | |
| 1274 | func assertHeaders(t *testing.T, actual, expected http.Header) { |
| 1275 | if !reflect.DeepEqual(actual, expected) { |
| 1276 | t.Errorf("expected headers %+v. received %+v", expected, actual) |
no test coverage detected