()
| 27 | } |
| 28 | |
| 29 | func NewHttpTestService() *HttpTestService { |
| 30 | return &HttpTestService{ |
| 31 | client: &http.Client{ |
| 32 | Timeout: 10 * time.Second, |
| 33 | }, |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | func (s *HttpTestService) Do(req *HttpTestReq) (*HttpTestResp, error) { |
| 38 | if strings.TrimSpace(req.URL) == "" { |
nothing calls this directly
no outgoing calls
no test coverage detected