Documentation
¶
Index ¶
- type MockDownloader
- type MockDownloader_Expecter
- type MockDownloader_Grab_Call
- func (_c *MockDownloader_Grab_Call) Return(_a0 *ent.DownloadRecord, _a1 error) *MockDownloader_Grab_Call
- func (_c *MockDownloader_Grab_Call) Run(run func(ctx context.Context, result indexer.SearchResult, movieID uint32)) *MockDownloader_Grab_Call
- func (_c *MockDownloader_Grab_Call) RunAndReturn(...) *MockDownloader_Grab_Call
- type MockEpisodeGrabber
- type MockEpisodeGrabber_Expecter
- type MockEpisodeGrabber_GrabEpisode_Call
- func (_c *MockEpisodeGrabber_GrabEpisode_Call) Return(_a0 *ent.DownloadRecord, _a1 error) *MockEpisodeGrabber_GrabEpisode_Call
- func (_c *MockEpisodeGrabber_GrabEpisode_Call) Run(run func(ctx context.Context, result indexer.SearchResult, episodeID uint32)) *MockEpisodeGrabber_GrabEpisode_Call
- func (_c *MockEpisodeGrabber_GrabEpisode_Call) RunAndReturn(...) *MockEpisodeGrabber_GrabEpisode_Call
- type MockFeedRunner
- type MockFeedRunner_Expecter
- type MockFeedRunner_Run_Call
- type MockIndexerFeeder
- type MockIndexerFeeder_Expecter
- type MockIndexerFeeder_Feed_Call
- func (_c *MockIndexerFeeder_Feed_Call) Return(_a0 []indexer.SearchResult, _a1 error) *MockIndexerFeeder_Feed_Call
- func (_c *MockIndexerFeeder_Feed_Call) Run(run func(ctx context.Context, indexerName string)) *MockIndexerFeeder_Feed_Call
- func (_c *MockIndexerFeeder_Feed_Call) RunAndReturn(run func(context.Context, string) ([]indexer.SearchResult, error)) *MockIndexerFeeder_Feed_Call
- type MockIndexerSearcher
- type MockIndexerSearcher_Expecter
- type MockIndexerSearcher_SearchMovie_Call
- func (_c *MockIndexerSearcher_SearchMovie_Call) Return(_a0 []indexer.SearchResult, _a1 error) *MockIndexerSearcher_SearchMovie_Call
- func (_c *MockIndexerSearcher_SearchMovie_Call) Run(run func(ctx context.Context, titles []string, tmdbID uint32)) *MockIndexerSearcher_SearchMovie_Call
- func (_c *MockIndexerSearcher_SearchMovie_Call) RunAndReturn(run func(context.Context, []string, uint32) ([]indexer.SearchResult, error)) *MockIndexerSearcher_SearchMovie_Call
- type MockMissingSearchRunner
- type MockMissingSearchRunner_Expecter
- type MockMissingSearchRunner_Run_Call
- func (_c *MockMissingSearchRunner_Run_Call) Return(_a0 error) *MockMissingSearchRunner_Run_Call
- func (_c *MockMissingSearchRunner_Run_Call) Run(run func(ctx context.Context)) *MockMissingSearchRunner_Run_Call
- func (_c *MockMissingSearchRunner_Run_Call) RunAndReturn(run func(context.Context) error) *MockMissingSearchRunner_Run_Call
- type MockTVIndexerSearcher
- func (_m *MockTVIndexerSearcher) EXPECT() *MockTVIndexerSearcher_Expecter
- func (_m *MockTVIndexerSearcher) SearchEpisode(ctx context.Context, titles []string, tvdbID uint32, season uint16, ...) ([]indexer.SearchResult, error)
- func (_m *MockTVIndexerSearcher) SearchSeason(ctx context.Context, titles []string, tvdbID uint32, season uint16) ([]indexer.SearchResult, error)
- type MockTVIndexerSearcher_Expecter
- func (_e *MockTVIndexerSearcher_Expecter) SearchEpisode(ctx interface{}, titles interface{}, tvdbID interface{}, season interface{}, ...) *MockTVIndexerSearcher_SearchEpisode_Call
- func (_e *MockTVIndexerSearcher_Expecter) SearchSeason(ctx interface{}, titles interface{}, tvdbID interface{}, season interface{}) *MockTVIndexerSearcher_SearchSeason_Call
- type MockTVIndexerSearcher_SearchEpisode_Call
- func (_c *MockTVIndexerSearcher_SearchEpisode_Call) Return(_a0 []indexer.SearchResult, _a1 error) *MockTVIndexerSearcher_SearchEpisode_Call
- func (_c *MockTVIndexerSearcher_SearchEpisode_Call) Run(...) *MockTVIndexerSearcher_SearchEpisode_Call
- func (_c *MockTVIndexerSearcher_SearchEpisode_Call) RunAndReturn(...) *MockTVIndexerSearcher_SearchEpisode_Call
- type MockTVIndexerSearcher_SearchSeason_Call
- func (_c *MockTVIndexerSearcher_SearchSeason_Call) Return(_a0 []indexer.SearchResult, _a1 error) *MockTVIndexerSearcher_SearchSeason_Call
- func (_c *MockTVIndexerSearcher_SearchSeason_Call) Run(run func(ctx context.Context, titles []string, tvdbID uint32, season uint16)) *MockTVIndexerSearcher_SearchSeason_Call
- func (_c *MockTVIndexerSearcher_SearchSeason_Call) RunAndReturn(...) *MockTVIndexerSearcher_SearchSeason_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDownloader ¶
MockDownloader is an autogenerated mock type for the Downloader type
func NewMockDownloader ¶
func NewMockDownloader(t interface {
mock.TestingT
Cleanup(func())
}) *MockDownloader
NewMockDownloader creates a new instance of MockDownloader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockDownloader) EXPECT ¶
func (_m *MockDownloader) EXPECT() *MockDownloader_Expecter
func (*MockDownloader) Grab ¶
func (_m *MockDownloader) Grab(ctx context.Context, result indexer.SearchResult, movieID uint32) (*ent.DownloadRecord, error)
Grab provides a mock function with given fields: ctx, result, movieID
type MockDownloader_Expecter ¶
type MockDownloader_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDownloader_Expecter) Grab ¶
func (_e *MockDownloader_Expecter) Grab(ctx interface{}, result interface{}, movieID interface{}) *MockDownloader_Grab_Call
Grab is a helper method to define mock.On call
- ctx context.Context
- result indexer.SearchResult
- movieID uint32
type MockDownloader_Grab_Call ¶
MockDownloader_Grab_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Grab'
func (*MockDownloader_Grab_Call) Return ¶
func (_c *MockDownloader_Grab_Call) Return(_a0 *ent.DownloadRecord, _a1 error) *MockDownloader_Grab_Call
func (*MockDownloader_Grab_Call) Run ¶
func (_c *MockDownloader_Grab_Call) Run(run func(ctx context.Context, result indexer.SearchResult, movieID uint32)) *MockDownloader_Grab_Call
func (*MockDownloader_Grab_Call) RunAndReturn ¶
func (_c *MockDownloader_Grab_Call) RunAndReturn(run func(context.Context, indexer.SearchResult, uint32) (*ent.DownloadRecord, error)) *MockDownloader_Grab_Call
type MockEpisodeGrabber ¶
MockEpisodeGrabber is an autogenerated mock type for the EpisodeGrabber type
func NewMockEpisodeGrabber ¶
func NewMockEpisodeGrabber(t interface {
mock.TestingT
Cleanup(func())
}) *MockEpisodeGrabber
NewMockEpisodeGrabber creates a new instance of MockEpisodeGrabber. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockEpisodeGrabber) EXPECT ¶
func (_m *MockEpisodeGrabber) EXPECT() *MockEpisodeGrabber_Expecter
func (*MockEpisodeGrabber) GrabEpisode ¶
func (_m *MockEpisodeGrabber) GrabEpisode(ctx context.Context, result indexer.SearchResult, episodeID uint32) (*ent.DownloadRecord, error)
GrabEpisode provides a mock function with given fields: ctx, result, episodeID
type MockEpisodeGrabber_Expecter ¶
type MockEpisodeGrabber_Expecter struct {
// contains filtered or unexported fields
}
func (*MockEpisodeGrabber_Expecter) GrabEpisode ¶
func (_e *MockEpisodeGrabber_Expecter) GrabEpisode(ctx interface{}, result interface{}, episodeID interface{}) *MockEpisodeGrabber_GrabEpisode_Call
GrabEpisode is a helper method to define mock.On call
- ctx context.Context
- result indexer.SearchResult
- episodeID uint32
type MockEpisodeGrabber_GrabEpisode_Call ¶
MockEpisodeGrabber_GrabEpisode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrabEpisode'
func (*MockEpisodeGrabber_GrabEpisode_Call) Return ¶
func (_c *MockEpisodeGrabber_GrabEpisode_Call) Return(_a0 *ent.DownloadRecord, _a1 error) *MockEpisodeGrabber_GrabEpisode_Call
func (*MockEpisodeGrabber_GrabEpisode_Call) Run ¶
func (_c *MockEpisodeGrabber_GrabEpisode_Call) Run(run func(ctx context.Context, result indexer.SearchResult, episodeID uint32)) *MockEpisodeGrabber_GrabEpisode_Call
func (*MockEpisodeGrabber_GrabEpisode_Call) RunAndReturn ¶
func (_c *MockEpisodeGrabber_GrabEpisode_Call) RunAndReturn(run func(context.Context, indexer.SearchResult, uint32) (*ent.DownloadRecord, error)) *MockEpisodeGrabber_GrabEpisode_Call
type MockFeedRunner ¶
MockFeedRunner is an autogenerated mock type for the FeedRunner type
func NewMockFeedRunner ¶
func NewMockFeedRunner(t interface {
mock.TestingT
Cleanup(func())
}) *MockFeedRunner
NewMockFeedRunner creates a new instance of MockFeedRunner. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockFeedRunner) EXPECT ¶
func (_m *MockFeedRunner) EXPECT() *MockFeedRunner_Expecter
type MockFeedRunner_Expecter ¶
type MockFeedRunner_Expecter struct {
// contains filtered or unexported fields
}
func (*MockFeedRunner_Expecter) Run ¶
func (_e *MockFeedRunner_Expecter) Run(ctx interface{}) *MockFeedRunner_Run_Call
Run is a helper method to define mock.On call
- ctx context.Context
type MockFeedRunner_Run_Call ¶
MockFeedRunner_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
func (*MockFeedRunner_Run_Call) Return ¶
func (_c *MockFeedRunner_Run_Call) Return(_a0 error) *MockFeedRunner_Run_Call
func (*MockFeedRunner_Run_Call) Run ¶
func (_c *MockFeedRunner_Run_Call) Run(run func(ctx context.Context)) *MockFeedRunner_Run_Call
func (*MockFeedRunner_Run_Call) RunAndReturn ¶
func (_c *MockFeedRunner_Run_Call) RunAndReturn(run func(context.Context) error) *MockFeedRunner_Run_Call
type MockIndexerFeeder ¶
MockIndexerFeeder is an autogenerated mock type for the IndexerFeeder type
func NewMockIndexerFeeder ¶
func NewMockIndexerFeeder(t interface {
mock.TestingT
Cleanup(func())
}) *MockIndexerFeeder
NewMockIndexerFeeder creates a new instance of MockIndexerFeeder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockIndexerFeeder) EXPECT ¶
func (_m *MockIndexerFeeder) EXPECT() *MockIndexerFeeder_Expecter
func (*MockIndexerFeeder) Feed ¶
func (_m *MockIndexerFeeder) Feed(ctx context.Context, indexerName string) ([]indexer.SearchResult, error)
Feed provides a mock function with given fields: ctx, indexerName
type MockIndexerFeeder_Expecter ¶
type MockIndexerFeeder_Expecter struct {
// contains filtered or unexported fields
}
func (*MockIndexerFeeder_Expecter) Feed ¶
func (_e *MockIndexerFeeder_Expecter) Feed(ctx interface{}, indexerName interface{}) *MockIndexerFeeder_Feed_Call
Feed is a helper method to define mock.On call
- ctx context.Context
- indexerName string
type MockIndexerFeeder_Feed_Call ¶
MockIndexerFeeder_Feed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Feed'
func (*MockIndexerFeeder_Feed_Call) Return ¶
func (_c *MockIndexerFeeder_Feed_Call) Return(_a0 []indexer.SearchResult, _a1 error) *MockIndexerFeeder_Feed_Call
func (*MockIndexerFeeder_Feed_Call) Run ¶
func (_c *MockIndexerFeeder_Feed_Call) Run(run func(ctx context.Context, indexerName string)) *MockIndexerFeeder_Feed_Call
func (*MockIndexerFeeder_Feed_Call) RunAndReturn ¶
func (_c *MockIndexerFeeder_Feed_Call) RunAndReturn(run func(context.Context, string) ([]indexer.SearchResult, error)) *MockIndexerFeeder_Feed_Call
type MockIndexerSearcher ¶
MockIndexerSearcher is an autogenerated mock type for the IndexerSearcher type
func NewMockIndexerSearcher ¶
func NewMockIndexerSearcher(t interface {
mock.TestingT
Cleanup(func())
}) *MockIndexerSearcher
NewMockIndexerSearcher creates a new instance of MockIndexerSearcher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockIndexerSearcher) EXPECT ¶
func (_m *MockIndexerSearcher) EXPECT() *MockIndexerSearcher_Expecter
func (*MockIndexerSearcher) SearchMovie ¶
func (_m *MockIndexerSearcher) SearchMovie(ctx context.Context, titles []string, tmdbID uint32) ([]indexer.SearchResult, error)
SearchMovie provides a mock function with given fields: ctx, titles, tmdbID
type MockIndexerSearcher_Expecter ¶
type MockIndexerSearcher_Expecter struct {
// contains filtered or unexported fields
}
func (*MockIndexerSearcher_Expecter) SearchMovie ¶
func (_e *MockIndexerSearcher_Expecter) SearchMovie(ctx interface{}, titles interface{}, tmdbID interface{}) *MockIndexerSearcher_SearchMovie_Call
SearchMovie is a helper method to define mock.On call
- ctx context.Context
- titles []string
- tmdbID uint32
type MockIndexerSearcher_SearchMovie_Call ¶
MockIndexerSearcher_SearchMovie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SearchMovie'
func (*MockIndexerSearcher_SearchMovie_Call) Return ¶
func (_c *MockIndexerSearcher_SearchMovie_Call) Return(_a0 []indexer.SearchResult, _a1 error) *MockIndexerSearcher_SearchMovie_Call
func (*MockIndexerSearcher_SearchMovie_Call) Run ¶
func (_c *MockIndexerSearcher_SearchMovie_Call) Run(run func(ctx context.Context, titles []string, tmdbID uint32)) *MockIndexerSearcher_SearchMovie_Call
func (*MockIndexerSearcher_SearchMovie_Call) RunAndReturn ¶
func (_c *MockIndexerSearcher_SearchMovie_Call) RunAndReturn(run func(context.Context, []string, uint32) ([]indexer.SearchResult, error)) *MockIndexerSearcher_SearchMovie_Call
type MockMissingSearchRunner ¶
MockMissingSearchRunner is an autogenerated mock type for the MissingSearchRunner type
func NewMockMissingSearchRunner ¶
func NewMockMissingSearchRunner(t interface {
mock.TestingT
Cleanup(func())
}) *MockMissingSearchRunner
NewMockMissingSearchRunner creates a new instance of MockMissingSearchRunner. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockMissingSearchRunner) EXPECT ¶
func (_m *MockMissingSearchRunner) EXPECT() *MockMissingSearchRunner_Expecter
type MockMissingSearchRunner_Expecter ¶
type MockMissingSearchRunner_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMissingSearchRunner_Expecter) Run ¶
func (_e *MockMissingSearchRunner_Expecter) Run(ctx interface{}) *MockMissingSearchRunner_Run_Call
Run is a helper method to define mock.On call
- ctx context.Context
type MockMissingSearchRunner_Run_Call ¶
MockMissingSearchRunner_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
func (*MockMissingSearchRunner_Run_Call) Return ¶
func (_c *MockMissingSearchRunner_Run_Call) Return(_a0 error) *MockMissingSearchRunner_Run_Call
func (*MockMissingSearchRunner_Run_Call) Run ¶
func (_c *MockMissingSearchRunner_Run_Call) Run(run func(ctx context.Context)) *MockMissingSearchRunner_Run_Call
func (*MockMissingSearchRunner_Run_Call) RunAndReturn ¶
func (_c *MockMissingSearchRunner_Run_Call) RunAndReturn(run func(context.Context) error) *MockMissingSearchRunner_Run_Call
type MockTVIndexerSearcher ¶
MockTVIndexerSearcher is an autogenerated mock type for the TVIndexerSearcher type
func NewMockTVIndexerSearcher ¶
func NewMockTVIndexerSearcher(t interface {
mock.TestingT
Cleanup(func())
}) *MockTVIndexerSearcher
NewMockTVIndexerSearcher creates a new instance of MockTVIndexerSearcher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockTVIndexerSearcher) EXPECT ¶
func (_m *MockTVIndexerSearcher) EXPECT() *MockTVIndexerSearcher_Expecter
func (*MockTVIndexerSearcher) SearchEpisode ¶
func (_m *MockTVIndexerSearcher) SearchEpisode(ctx context.Context, titles []string, tvdbID uint32, season uint16, episode uint16) ([]indexer.SearchResult, error)
SearchEpisode provides a mock function with given fields: ctx, titles, tvdbID, season, episode
func (*MockTVIndexerSearcher) SearchSeason ¶
func (_m *MockTVIndexerSearcher) SearchSeason(ctx context.Context, titles []string, tvdbID uint32, season uint16) ([]indexer.SearchResult, error)
SearchSeason provides a mock function with given fields: ctx, titles, tvdbID, season
type MockTVIndexerSearcher_Expecter ¶
type MockTVIndexerSearcher_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTVIndexerSearcher_Expecter) SearchEpisode ¶
func (_e *MockTVIndexerSearcher_Expecter) SearchEpisode(ctx interface{}, titles interface{}, tvdbID interface{}, season interface{}, episode interface{}) *MockTVIndexerSearcher_SearchEpisode_Call
SearchEpisode is a helper method to define mock.On call
- ctx context.Context
- titles []string
- tvdbID uint32
- season uint16
- episode uint16
func (*MockTVIndexerSearcher_Expecter) SearchSeason ¶
func (_e *MockTVIndexerSearcher_Expecter) SearchSeason(ctx interface{}, titles interface{}, tvdbID interface{}, season interface{}) *MockTVIndexerSearcher_SearchSeason_Call
SearchSeason is a helper method to define mock.On call
- ctx context.Context
- titles []string
- tvdbID uint32
- season uint16
type MockTVIndexerSearcher_SearchEpisode_Call ¶
MockTVIndexerSearcher_SearchEpisode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SearchEpisode'
func (*MockTVIndexerSearcher_SearchEpisode_Call) Return ¶
func (_c *MockTVIndexerSearcher_SearchEpisode_Call) Return(_a0 []indexer.SearchResult, _a1 error) *MockTVIndexerSearcher_SearchEpisode_Call
func (*MockTVIndexerSearcher_SearchEpisode_Call) Run ¶
func (_c *MockTVIndexerSearcher_SearchEpisode_Call) Run(run func(ctx context.Context, titles []string, tvdbID uint32, season uint16, episode uint16)) *MockTVIndexerSearcher_SearchEpisode_Call
func (*MockTVIndexerSearcher_SearchEpisode_Call) RunAndReturn ¶
func (_c *MockTVIndexerSearcher_SearchEpisode_Call) RunAndReturn(run func(context.Context, []string, uint32, uint16, uint16) ([]indexer.SearchResult, error)) *MockTVIndexerSearcher_SearchEpisode_Call
type MockTVIndexerSearcher_SearchSeason_Call ¶
MockTVIndexerSearcher_SearchSeason_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SearchSeason'
func (*MockTVIndexerSearcher_SearchSeason_Call) Return ¶
func (_c *MockTVIndexerSearcher_SearchSeason_Call) Return(_a0 []indexer.SearchResult, _a1 error) *MockTVIndexerSearcher_SearchSeason_Call
func (*MockTVIndexerSearcher_SearchSeason_Call) Run ¶
func (_c *MockTVIndexerSearcher_SearchSeason_Call) Run(run func(ctx context.Context, titles []string, tvdbID uint32, season uint16)) *MockTVIndexerSearcher_SearchSeason_Call
func (*MockTVIndexerSearcher_SearchSeason_Call) RunAndReturn ¶
func (_c *MockTVIndexerSearcher_SearchSeason_Call) RunAndReturn(run func(context.Context, []string, uint32, uint16) ([]indexer.SearchResult, error)) *MockTVIndexerSearcher_SearchSeason_Call