WithFetcher overrides the repository fetcher (used in tests).
(f RepoFetcher)
| 35 | |
| 36 | // WithFetcher overrides the repository fetcher (used in tests). |
| 37 | func (svc *Service) WithFetcher(f RepoFetcher) *Service { |
| 38 | svc.fetcher = f |
| 39 | return svc |
| 40 | } |
| 41 | |
| 42 | type defaultFetcher struct{} |
| 43 |
no outgoing calls