(ctx context.Context, client *Client, rawURL string, accept string)
| 1105 | } |
| 1106 | |
| 1107 | func doRequestErrorForTest(ctx context.Context, client *Client, rawURL string, accept string) error { |
| 1108 | response, err := client.doRequest(ctx, rawURL, accept) |
| 1109 | if response != nil { |
| 1110 | _ = response.Body.Close() |
| 1111 | } |
| 1112 | return err |
| 1113 | } |
| 1114 | |
| 1115 | func mustParseURL(raw string) *url.URL { |
| 1116 | parsed, err := url.Parse(raw) |
no test coverage detected