fullMockJackettService implements torrentDownloader interface for full handler testing
| 1028 | |
| 1029 | // fullMockJackettService implements torrentDownloader interface for full handler testing |
| 1030 | type fullMockJackettService struct { |
| 1031 | downloadTorrentCalls []jackett.TorrentDownloadRequest |
| 1032 | downloadTorrentData []byte |
| 1033 | downloadTorrentErr error |
| 1034 | } |
| 1035 | |
| 1036 | func (m *fullMockJackettService) DownloadTorrent(ctx context.Context, req jackett.TorrentDownloadRequest) ([]byte, error) { |
| 1037 | m.downloadTorrentCalls = append(m.downloadTorrentCalls, req) |
nothing calls this directly
no outgoing calls
no test coverage detected