MCPcopy
hub / github.com/autobrr/qui / fullMockJackettService

Struct fullMockJackettService

internal/api/handlers/torrents_add_test.go:1030–1034  ·  view source on GitHub ↗

fullMockJackettService implements torrentDownloader interface for full handler testing

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected