(statusCode int, body []byte)
| 561 | }) |
| 562 | |
| 563 | func fixedResponseServer(statusCode int, body []byte) *httptest.Server { |
| 564 | return httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
| 565 | w.WriteHeader(statusCode) |
| 566 | w.Write(body) |
| 567 | })) |
| 568 | } |
| 569 | |
| 570 | type errorReader struct { |
| 571 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…