(t *testing.T)
| 200 | } |
| 201 | |
| 202 | func TestFetcher_CustomHTTPClient(t *testing.T) { |
| 203 | customClient := &http.Client{Timeout: 5 * time.Second} |
| 204 | |
| 205 | apiHost := testAPIHostResolver{baseURL: "https://api.github.com"} |
| 206 | fetcher := NewFetcher(apiHost, FetcherOptions{ |
| 207 | HTTPClient: customClient, |
| 208 | }) |
| 209 | |
| 210 | assert.Equal(t, customClient, fetcher.client) |
| 211 | } |
| 212 | |
| 213 | func TestFetcher_CustomAPIHost(t *testing.T) { |
| 214 | apiHost := testAPIHostResolver{baseURL: "https://api.github.enterprise.com"} |
nothing calls this directly
no test coverage detected