Documentation
¶
Index ¶
- type MockClient
- func (_m *MockClient) EXPECT() *MockClient_Expecter
- func (_m *MockClient) Feed(ctx context.Context) ([]indexer.SearchResult, error)
- func (_m *MockClient) Search(ctx context.Context, params indexer.SearchParams) ([]indexer.SearchResult, error)
- func (_m *MockClient) TestConnection(ctx context.Context) error
- type MockClient_Expecter
- type MockClient_Feed_Call
- func (_c *MockClient_Feed_Call) Return(_a0 []indexer.SearchResult, _a1 error) *MockClient_Feed_Call
- func (_c *MockClient_Feed_Call) Run(run func(ctx context.Context)) *MockClient_Feed_Call
- func (_c *MockClient_Feed_Call) RunAndReturn(run func(context.Context) ([]indexer.SearchResult, error)) *MockClient_Feed_Call
- type MockClient_Search_Call
- func (_c *MockClient_Search_Call) Return(_a0 []indexer.SearchResult, _a1 error) *MockClient_Search_Call
- func (_c *MockClient_Search_Call) Run(run func(ctx context.Context, params indexer.SearchParams)) *MockClient_Search_Call
- func (_c *MockClient_Search_Call) RunAndReturn(...) *MockClient_Search_Call
- type MockClient_TestConnection_Call
- func (_c *MockClient_TestConnection_Call) Return(_a0 error) *MockClient_TestConnection_Call
- func (_c *MockClient_TestConnection_Call) Run(run func(ctx context.Context)) *MockClient_TestConnection_Call
- func (_c *MockClient_TestConnection_Call) RunAndReturn(run func(context.Context) error) *MockClient_TestConnection_Call
- type MockManager
- func (_m *MockManager) EXPECT() *MockManager_Expecter
- func (_m *MockManager) Feed(ctx context.Context, indexerName string) ([]indexer.SearchResult, error)
- func (_m *MockManager) SearchEpisode(ctx context.Context, titles []string, tvdbID uint32, season uint16, ...) ([]indexer.SearchResult, error)
- func (_m *MockManager) SearchMovie(ctx context.Context, titles []string, tmdbID uint32) ([]indexer.SearchResult, error)
- func (_m *MockManager) SearchSeason(ctx context.Context, titles []string, tvdbID uint32, season uint16) ([]indexer.SearchResult, error)
- func (_m *MockManager) SearchSeries(ctx context.Context, titles []string, tvdbID uint32) ([]indexer.SearchResult, error)
- func (_m *MockManager) Test(ctx context.Context, p indexer.TestParams) error
- func (_m *MockManager) TestByName(ctx context.Context, name string) error
- type MockManager_Expecter
- func (_e *MockManager_Expecter) Feed(ctx interface{}, indexerName interface{}) *MockManager_Feed_Call
- func (_e *MockManager_Expecter) SearchEpisode(ctx interface{}, titles interface{}, tvdbID interface{}, season interface{}, ...) *MockManager_SearchEpisode_Call
- func (_e *MockManager_Expecter) SearchMovie(ctx interface{}, titles interface{}, tmdbID interface{}) *MockManager_SearchMovie_Call
- func (_e *MockManager_Expecter) SearchSeason(ctx interface{}, titles interface{}, tvdbID interface{}, season interface{}) *MockManager_SearchSeason_Call
- func (_e *MockManager_Expecter) SearchSeries(ctx interface{}, titles interface{}, tvdbID interface{}) *MockManager_SearchSeries_Call
- func (_e *MockManager_Expecter) Test(ctx interface{}, p interface{}) *MockManager_Test_Call
- func (_e *MockManager_Expecter) TestByName(ctx interface{}, name interface{}) *MockManager_TestByName_Call
- type MockManager_Feed_Call
- func (_c *MockManager_Feed_Call) Return(_a0 []indexer.SearchResult, _a1 error) *MockManager_Feed_Call
- func (_c *MockManager_Feed_Call) Run(run func(ctx context.Context, indexerName string)) *MockManager_Feed_Call
- func (_c *MockManager_Feed_Call) RunAndReturn(run func(context.Context, string) ([]indexer.SearchResult, error)) *MockManager_Feed_Call
- type MockManager_SearchEpisode_Call
- type MockManager_SearchMovie_Call
- func (_c *MockManager_SearchMovie_Call) Return(_a0 []indexer.SearchResult, _a1 error) *MockManager_SearchMovie_Call
- func (_c *MockManager_SearchMovie_Call) Run(run func(ctx context.Context, titles []string, tmdbID uint32)) *MockManager_SearchMovie_Call
- func (_c *MockManager_SearchMovie_Call) RunAndReturn(run func(context.Context, []string, uint32) ([]indexer.SearchResult, error)) *MockManager_SearchMovie_Call
- type MockManager_SearchSeason_Call
- func (_c *MockManager_SearchSeason_Call) Return(_a0 []indexer.SearchResult, _a1 error) *MockManager_SearchSeason_Call
- func (_c *MockManager_SearchSeason_Call) Run(run func(ctx context.Context, titles []string, tvdbID uint32, season uint16)) *MockManager_SearchSeason_Call
- func (_c *MockManager_SearchSeason_Call) RunAndReturn(...) *MockManager_SearchSeason_Call
- type MockManager_SearchSeries_Call
- func (_c *MockManager_SearchSeries_Call) Return(_a0 []indexer.SearchResult, _a1 error) *MockManager_SearchSeries_Call
- func (_c *MockManager_SearchSeries_Call) Run(run func(ctx context.Context, titles []string, tvdbID uint32)) *MockManager_SearchSeries_Call
- func (_c *MockManager_SearchSeries_Call) RunAndReturn(run func(context.Context, []string, uint32) ([]indexer.SearchResult, error)) *MockManager_SearchSeries_Call
- type MockManager_TestByName_Call
- func (_c *MockManager_TestByName_Call) Return(_a0 error) *MockManager_TestByName_Call
- func (_c *MockManager_TestByName_Call) Run(run func(ctx context.Context, name string)) *MockManager_TestByName_Call
- func (_c *MockManager_TestByName_Call) RunAndReturn(run func(context.Context, string) error) *MockManager_TestByName_Call
- type MockManager_Test_Call
- func (_c *MockManager_Test_Call) Return(_a0 error) *MockManager_Test_Call
- func (_c *MockManager_Test_Call) Run(run func(ctx context.Context, p indexer.TestParams)) *MockManager_Test_Call
- func (_c *MockManager_Test_Call) RunAndReturn(run func(context.Context, indexer.TestParams) error) *MockManager_Test_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
MockClient is an autogenerated mock type for the Client type
func NewMockClient ¶
func NewMockClient(t interface {
mock.TestingT
Cleanup(func())
}) *MockClient
NewMockClient creates a new instance of MockClient. 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 (*MockClient) EXPECT ¶
func (_m *MockClient) EXPECT() *MockClient_Expecter
func (*MockClient) Feed ¶
func (_m *MockClient) Feed(ctx context.Context) ([]indexer.SearchResult, error)
Feed provides a mock function with given fields: ctx
func (*MockClient) Search ¶
func (_m *MockClient) Search(ctx context.Context, params indexer.SearchParams) ([]indexer.SearchResult, error)
Search provides a mock function with given fields: ctx, params
func (*MockClient) TestConnection ¶
func (_m *MockClient) TestConnection(ctx context.Context) error
TestConnection provides a mock function with given fields: ctx
type MockClient_Expecter ¶
type MockClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockClient_Expecter) Feed ¶
func (_e *MockClient_Expecter) Feed(ctx interface{}) *MockClient_Feed_Call
Feed is a helper method to define mock.On call
- ctx context.Context
func (*MockClient_Expecter) Search ¶
func (_e *MockClient_Expecter) Search(ctx interface{}, params interface{}) *MockClient_Search_Call
Search is a helper method to define mock.On call
- ctx context.Context
- params indexer.SearchParams
func (*MockClient_Expecter) TestConnection ¶
func (_e *MockClient_Expecter) TestConnection(ctx interface{}) *MockClient_TestConnection_Call
TestConnection is a helper method to define mock.On call
- ctx context.Context
type MockClient_Feed_Call ¶
MockClient_Feed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Feed'
func (*MockClient_Feed_Call) Return ¶
func (_c *MockClient_Feed_Call) Return(_a0 []indexer.SearchResult, _a1 error) *MockClient_Feed_Call
func (*MockClient_Feed_Call) Run ¶
func (_c *MockClient_Feed_Call) Run(run func(ctx context.Context)) *MockClient_Feed_Call
func (*MockClient_Feed_Call) RunAndReturn ¶
func (_c *MockClient_Feed_Call) RunAndReturn(run func(context.Context) ([]indexer.SearchResult, error)) *MockClient_Feed_Call
type MockClient_Search_Call ¶
MockClient_Search_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Search'
func (*MockClient_Search_Call) Return ¶
func (_c *MockClient_Search_Call) Return(_a0 []indexer.SearchResult, _a1 error) *MockClient_Search_Call
func (*MockClient_Search_Call) Run ¶
func (_c *MockClient_Search_Call) Run(run func(ctx context.Context, params indexer.SearchParams)) *MockClient_Search_Call
func (*MockClient_Search_Call) RunAndReturn ¶
func (_c *MockClient_Search_Call) RunAndReturn(run func(context.Context, indexer.SearchParams) ([]indexer.SearchResult, error)) *MockClient_Search_Call
type MockClient_TestConnection_Call ¶
MockClient_TestConnection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TestConnection'
func (*MockClient_TestConnection_Call) Return ¶
func (_c *MockClient_TestConnection_Call) Return(_a0 error) *MockClient_TestConnection_Call
func (*MockClient_TestConnection_Call) Run ¶
func (_c *MockClient_TestConnection_Call) Run(run func(ctx context.Context)) *MockClient_TestConnection_Call
func (*MockClient_TestConnection_Call) RunAndReturn ¶
func (_c *MockClient_TestConnection_Call) RunAndReturn(run func(context.Context) error) *MockClient_TestConnection_Call
type MockManager ¶
MockManager is an autogenerated mock type for the Manager type
func NewMockManager ¶
func NewMockManager(t interface {
mock.TestingT
Cleanup(func())
}) *MockManager
NewMockManager creates a new instance of MockManager. 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 (*MockManager) EXPECT ¶
func (_m *MockManager) EXPECT() *MockManager_Expecter
func (*MockManager) Feed ¶
func (_m *MockManager) Feed(ctx context.Context, indexerName string) ([]indexer.SearchResult, error)
Feed provides a mock function with given fields: ctx, indexerName
func (*MockManager) SearchEpisode ¶
func (_m *MockManager) 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 (*MockManager) SearchMovie ¶
func (_m *MockManager) SearchMovie(ctx context.Context, titles []string, tmdbID uint32) ([]indexer.SearchResult, error)
SearchMovie provides a mock function with given fields: ctx, titles, tmdbID
func (*MockManager) SearchSeason ¶
func (_m *MockManager) 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
func (*MockManager) SearchSeries ¶
func (_m *MockManager) SearchSeries(ctx context.Context, titles []string, tvdbID uint32) ([]indexer.SearchResult, error)
SearchSeries provides a mock function with given fields: ctx, titles, tvdbID
func (*MockManager) Test ¶
func (_m *MockManager) Test(ctx context.Context, p indexer.TestParams) error
Test provides a mock function with given fields: ctx, p
func (*MockManager) TestByName ¶
func (_m *MockManager) TestByName(ctx context.Context, name string) error
TestByName provides a mock function with given fields: ctx, name
type MockManager_Expecter ¶
type MockManager_Expecter struct {
// contains filtered or unexported fields
}
func (*MockManager_Expecter) Feed ¶
func (_e *MockManager_Expecter) Feed(ctx interface{}, indexerName interface{}) *MockManager_Feed_Call
Feed is a helper method to define mock.On call
- ctx context.Context
- indexerName string
func (*MockManager_Expecter) SearchEpisode ¶
func (_e *MockManager_Expecter) SearchEpisode(ctx interface{}, titles interface{}, tvdbID interface{}, season interface{}, episode interface{}) *MockManager_SearchEpisode_Call
SearchEpisode is a helper method to define mock.On call
- ctx context.Context
- titles []string
- tvdbID uint32
- season uint16
- episode uint16
func (*MockManager_Expecter) SearchMovie ¶
func (_e *MockManager_Expecter) SearchMovie(ctx interface{}, titles interface{}, tmdbID interface{}) *MockManager_SearchMovie_Call
SearchMovie is a helper method to define mock.On call
- ctx context.Context
- titles []string
- tmdbID uint32
func (*MockManager_Expecter) SearchSeason ¶
func (_e *MockManager_Expecter) SearchSeason(ctx interface{}, titles interface{}, tvdbID interface{}, season interface{}) *MockManager_SearchSeason_Call
SearchSeason is a helper method to define mock.On call
- ctx context.Context
- titles []string
- tvdbID uint32
- season uint16
func (*MockManager_Expecter) SearchSeries ¶
func (_e *MockManager_Expecter) SearchSeries(ctx interface{}, titles interface{}, tvdbID interface{}) *MockManager_SearchSeries_Call
SearchSeries is a helper method to define mock.On call
- ctx context.Context
- titles []string
- tvdbID uint32
func (*MockManager_Expecter) Test ¶
func (_e *MockManager_Expecter) Test(ctx interface{}, p interface{}) *MockManager_Test_Call
Test is a helper method to define mock.On call
- ctx context.Context
- p indexer.TestParams
func (*MockManager_Expecter) TestByName ¶
func (_e *MockManager_Expecter) TestByName(ctx interface{}, name interface{}) *MockManager_TestByName_Call
TestByName is a helper method to define mock.On call
- ctx context.Context
- name string
type MockManager_Feed_Call ¶
MockManager_Feed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Feed'
func (*MockManager_Feed_Call) Return ¶
func (_c *MockManager_Feed_Call) Return(_a0 []indexer.SearchResult, _a1 error) *MockManager_Feed_Call
func (*MockManager_Feed_Call) Run ¶
func (_c *MockManager_Feed_Call) Run(run func(ctx context.Context, indexerName string)) *MockManager_Feed_Call
func (*MockManager_Feed_Call) RunAndReturn ¶
func (_c *MockManager_Feed_Call) RunAndReturn(run func(context.Context, string) ([]indexer.SearchResult, error)) *MockManager_Feed_Call
type MockManager_SearchEpisode_Call ¶
MockManager_SearchEpisode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SearchEpisode'
func (*MockManager_SearchEpisode_Call) Return ¶
func (_c *MockManager_SearchEpisode_Call) Return(_a0 []indexer.SearchResult, _a1 error) *MockManager_SearchEpisode_Call
func (*MockManager_SearchEpisode_Call) Run ¶
func (_c *MockManager_SearchEpisode_Call) Run(run func(ctx context.Context, titles []string, tvdbID uint32, season uint16, episode uint16)) *MockManager_SearchEpisode_Call
func (*MockManager_SearchEpisode_Call) RunAndReturn ¶
func (_c *MockManager_SearchEpisode_Call) RunAndReturn(run func(context.Context, []string, uint32, uint16, uint16) ([]indexer.SearchResult, error)) *MockManager_SearchEpisode_Call
type MockManager_SearchMovie_Call ¶
MockManager_SearchMovie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SearchMovie'
func (*MockManager_SearchMovie_Call) Return ¶
func (_c *MockManager_SearchMovie_Call) Return(_a0 []indexer.SearchResult, _a1 error) *MockManager_SearchMovie_Call
func (*MockManager_SearchMovie_Call) Run ¶
func (_c *MockManager_SearchMovie_Call) Run(run func(ctx context.Context, titles []string, tmdbID uint32)) *MockManager_SearchMovie_Call
func (*MockManager_SearchMovie_Call) RunAndReturn ¶
func (_c *MockManager_SearchMovie_Call) RunAndReturn(run func(context.Context, []string, uint32) ([]indexer.SearchResult, error)) *MockManager_SearchMovie_Call
type MockManager_SearchSeason_Call ¶
MockManager_SearchSeason_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SearchSeason'
func (*MockManager_SearchSeason_Call) Return ¶
func (_c *MockManager_SearchSeason_Call) Return(_a0 []indexer.SearchResult, _a1 error) *MockManager_SearchSeason_Call
func (*MockManager_SearchSeason_Call) Run ¶
func (_c *MockManager_SearchSeason_Call) Run(run func(ctx context.Context, titles []string, tvdbID uint32, season uint16)) *MockManager_SearchSeason_Call
func (*MockManager_SearchSeason_Call) RunAndReturn ¶
func (_c *MockManager_SearchSeason_Call) RunAndReturn(run func(context.Context, []string, uint32, uint16) ([]indexer.SearchResult, error)) *MockManager_SearchSeason_Call
type MockManager_SearchSeries_Call ¶
MockManager_SearchSeries_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SearchSeries'
func (*MockManager_SearchSeries_Call) Return ¶
func (_c *MockManager_SearchSeries_Call) Return(_a0 []indexer.SearchResult, _a1 error) *MockManager_SearchSeries_Call
func (*MockManager_SearchSeries_Call) Run ¶
func (_c *MockManager_SearchSeries_Call) Run(run func(ctx context.Context, titles []string, tvdbID uint32)) *MockManager_SearchSeries_Call
func (*MockManager_SearchSeries_Call) RunAndReturn ¶
func (_c *MockManager_SearchSeries_Call) RunAndReturn(run func(context.Context, []string, uint32) ([]indexer.SearchResult, error)) *MockManager_SearchSeries_Call
type MockManager_TestByName_Call ¶
MockManager_TestByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TestByName'
func (*MockManager_TestByName_Call) Return ¶
func (_c *MockManager_TestByName_Call) Return(_a0 error) *MockManager_TestByName_Call
func (*MockManager_TestByName_Call) Run ¶
func (_c *MockManager_TestByName_Call) Run(run func(ctx context.Context, name string)) *MockManager_TestByName_Call
func (*MockManager_TestByName_Call) RunAndReturn ¶
func (_c *MockManager_TestByName_Call) RunAndReturn(run func(context.Context, string) error) *MockManager_TestByName_Call
type MockManager_Test_Call ¶
MockManager_Test_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Test'
func (*MockManager_Test_Call) Return ¶
func (_c *MockManager_Test_Call) Return(_a0 error) *MockManager_Test_Call
func (*MockManager_Test_Call) Run ¶
func (_c *MockManager_Test_Call) Run(run func(ctx context.Context, p indexer.TestParams)) *MockManager_Test_Call
func (*MockManager_Test_Call) RunAndReturn ¶
func (_c *MockManager_Test_Call) RunAndReturn(run func(context.Context, indexer.TestParams) error) *MockManager_Test_Call