Documentation
¶
Index ¶
- type MockManager
- func (_m *MockManager) BeginPlexPin(ctx context.Context) (mediaserver.PlexPin, error)
- func (_m *MockManager) DiscoverSections(ctx context.Context, p mediaserver.TestParams) ([]mediaserver.Section, error)
- func (_m *MockManager) EXPECT() *MockManager_Expecter
- func (_m *MockManager) PollPlexPin(ctx context.Context, pinID uint64) (mediaserver.PlexPinResult, error)
- func (_m *MockManager) Test(ctx context.Context, p mediaserver.TestParams) error
- func (_m *MockManager) TestByName(ctx context.Context, name string) error
- type MockManager_BeginPlexPin_Call
- func (_c *MockManager_BeginPlexPin_Call) Return(_a0 mediaserver.PlexPin, _a1 error) *MockManager_BeginPlexPin_Call
- func (_c *MockManager_BeginPlexPin_Call) Run(run func(ctx context.Context)) *MockManager_BeginPlexPin_Call
- func (_c *MockManager_BeginPlexPin_Call) RunAndReturn(run func(context.Context) (mediaserver.PlexPin, error)) *MockManager_BeginPlexPin_Call
- type MockManager_DiscoverSections_Call
- func (_c *MockManager_DiscoverSections_Call) Return(_a0 []mediaserver.Section, _a1 error) *MockManager_DiscoverSections_Call
- func (_c *MockManager_DiscoverSections_Call) Run(run func(ctx context.Context, p mediaserver.TestParams)) *MockManager_DiscoverSections_Call
- func (_c *MockManager_DiscoverSections_Call) RunAndReturn(...) *MockManager_DiscoverSections_Call
- type MockManager_Expecter
- func (_e *MockManager_Expecter) BeginPlexPin(ctx interface{}) *MockManager_BeginPlexPin_Call
- func (_e *MockManager_Expecter) DiscoverSections(ctx interface{}, p interface{}) *MockManager_DiscoverSections_Call
- func (_e *MockManager_Expecter) PollPlexPin(ctx interface{}, pinID interface{}) *MockManager_PollPlexPin_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_PollPlexPin_Call
- func (_c *MockManager_PollPlexPin_Call) Return(_a0 mediaserver.PlexPinResult, _a1 error) *MockManager_PollPlexPin_Call
- func (_c *MockManager_PollPlexPin_Call) Run(run func(ctx context.Context, pinID uint64)) *MockManager_PollPlexPin_Call
- func (_c *MockManager_PollPlexPin_Call) RunAndReturn(run func(context.Context, uint64) (mediaserver.PlexPinResult, error)) *MockManager_PollPlexPin_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 mediaserver.TestParams)) *MockManager_Test_Call
- func (_c *MockManager_Test_Call) RunAndReturn(run func(context.Context, mediaserver.TestParams) error) *MockManager_Test_Call
- type MockServer
- func (_m *MockServer) EXPECT() *MockServer_Expecter
- func (_m *MockServer) MovieDeepLink(ctx context.Context, hintSection string, tmdbID uint32, title string, ...) (string, error)
- func (_m *MockServer) RefreshLibrary(ctx context.Context, libraryPath string, sectionKey string) error
- func (_m *MockServer) TVShowDeepLink(ctx context.Context, hintSection string, tvdbID uint32, title string, ...) (string, error)
- func (_m *MockServer) TestConnection(ctx context.Context) error
- type MockServer_Expecter
- func (_e *MockServer_Expecter) MovieDeepLink(ctx interface{}, hintSection interface{}, tmdbID interface{}, ...) *MockServer_MovieDeepLink_Call
- func (_e *MockServer_Expecter) RefreshLibrary(ctx interface{}, libraryPath interface{}, sectionKey interface{}) *MockServer_RefreshLibrary_Call
- func (_e *MockServer_Expecter) TVShowDeepLink(ctx interface{}, hintSection interface{}, tvdbID interface{}, ...) *MockServer_TVShowDeepLink_Call
- func (_e *MockServer_Expecter) TestConnection(ctx interface{}) *MockServer_TestConnection_Call
- type MockServer_MovieDeepLink_Call
- func (_c *MockServer_MovieDeepLink_Call) Return(_a0 string, _a1 error) *MockServer_MovieDeepLink_Call
- func (_c *MockServer_MovieDeepLink_Call) Run(...) *MockServer_MovieDeepLink_Call
- func (_c *MockServer_MovieDeepLink_Call) RunAndReturn(run func(context.Context, string, uint32, string, uint16) (string, error)) *MockServer_MovieDeepLink_Call
- type MockServer_RefreshLibrary_Call
- func (_c *MockServer_RefreshLibrary_Call) Return(_a0 error) *MockServer_RefreshLibrary_Call
- func (_c *MockServer_RefreshLibrary_Call) Run(run func(ctx context.Context, libraryPath string, sectionKey string)) *MockServer_RefreshLibrary_Call
- func (_c *MockServer_RefreshLibrary_Call) RunAndReturn(run func(context.Context, string, string) error) *MockServer_RefreshLibrary_Call
- type MockServer_TVShowDeepLink_Call
- func (_c *MockServer_TVShowDeepLink_Call) Return(_a0 string, _a1 error) *MockServer_TVShowDeepLink_Call
- func (_c *MockServer_TVShowDeepLink_Call) Run(...) *MockServer_TVShowDeepLink_Call
- func (_c *MockServer_TVShowDeepLink_Call) RunAndReturn(run func(context.Context, string, uint32, string, uint16) (string, error)) *MockServer_TVShowDeepLink_Call
- type MockServer_TestConnection_Call
- func (_c *MockServer_TestConnection_Call) Return(_a0 error) *MockServer_TestConnection_Call
- func (_c *MockServer_TestConnection_Call) Run(run func(ctx context.Context)) *MockServer_TestConnection_Call
- func (_c *MockServer_TestConnection_Call) RunAndReturn(run func(context.Context) error) *MockServer_TestConnection_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) BeginPlexPin ¶
func (_m *MockManager) BeginPlexPin(ctx context.Context) (mediaserver.PlexPin, error)
BeginPlexPin provides a mock function with given fields: ctx
func (*MockManager) DiscoverSections ¶
func (_m *MockManager) DiscoverSections(ctx context.Context, p mediaserver.TestParams) ([]mediaserver.Section, error)
DiscoverSections provides a mock function with given fields: ctx, p
func (*MockManager) EXPECT ¶
func (_m *MockManager) EXPECT() *MockManager_Expecter
func (*MockManager) PollPlexPin ¶
func (_m *MockManager) PollPlexPin(ctx context.Context, pinID uint64) (mediaserver.PlexPinResult, error)
PollPlexPin provides a mock function with given fields: ctx, pinID
func (*MockManager) Test ¶
func (_m *MockManager) Test(ctx context.Context, p mediaserver.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_BeginPlexPin_Call ¶
MockManager_BeginPlexPin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BeginPlexPin'
func (*MockManager_BeginPlexPin_Call) Return ¶
func (_c *MockManager_BeginPlexPin_Call) Return(_a0 mediaserver.PlexPin, _a1 error) *MockManager_BeginPlexPin_Call
func (*MockManager_BeginPlexPin_Call) Run ¶
func (_c *MockManager_BeginPlexPin_Call) Run(run func(ctx context.Context)) *MockManager_BeginPlexPin_Call
func (*MockManager_BeginPlexPin_Call) RunAndReturn ¶
func (_c *MockManager_BeginPlexPin_Call) RunAndReturn(run func(context.Context) (mediaserver.PlexPin, error)) *MockManager_BeginPlexPin_Call
type MockManager_DiscoverSections_Call ¶
MockManager_DiscoverSections_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DiscoverSections'
func (*MockManager_DiscoverSections_Call) Return ¶
func (_c *MockManager_DiscoverSections_Call) Return(_a0 []mediaserver.Section, _a1 error) *MockManager_DiscoverSections_Call
func (*MockManager_DiscoverSections_Call) Run ¶
func (_c *MockManager_DiscoverSections_Call) Run(run func(ctx context.Context, p mediaserver.TestParams)) *MockManager_DiscoverSections_Call
func (*MockManager_DiscoverSections_Call) RunAndReturn ¶
func (_c *MockManager_DiscoverSections_Call) RunAndReturn(run func(context.Context, mediaserver.TestParams) ([]mediaserver.Section, error)) *MockManager_DiscoverSections_Call
type MockManager_Expecter ¶
type MockManager_Expecter struct {
// contains filtered or unexported fields
}
func (*MockManager_Expecter) BeginPlexPin ¶
func (_e *MockManager_Expecter) BeginPlexPin(ctx interface{}) *MockManager_BeginPlexPin_Call
BeginPlexPin is a helper method to define mock.On call
- ctx context.Context
func (*MockManager_Expecter) DiscoverSections ¶
func (_e *MockManager_Expecter) DiscoverSections(ctx interface{}, p interface{}) *MockManager_DiscoverSections_Call
DiscoverSections is a helper method to define mock.On call
- ctx context.Context
- p mediaserver.TestParams
func (*MockManager_Expecter) PollPlexPin ¶
func (_e *MockManager_Expecter) PollPlexPin(ctx interface{}, pinID interface{}) *MockManager_PollPlexPin_Call
PollPlexPin is a helper method to define mock.On call
- ctx context.Context
- pinID uint64
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 mediaserver.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_PollPlexPin_Call ¶
MockManager_PollPlexPin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PollPlexPin'
func (*MockManager_PollPlexPin_Call) Return ¶
func (_c *MockManager_PollPlexPin_Call) Return(_a0 mediaserver.PlexPinResult, _a1 error) *MockManager_PollPlexPin_Call
func (*MockManager_PollPlexPin_Call) Run ¶
func (_c *MockManager_PollPlexPin_Call) Run(run func(ctx context.Context, pinID uint64)) *MockManager_PollPlexPin_Call
func (*MockManager_PollPlexPin_Call) RunAndReturn ¶
func (_c *MockManager_PollPlexPin_Call) RunAndReturn(run func(context.Context, uint64) (mediaserver.PlexPinResult, error)) *MockManager_PollPlexPin_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 mediaserver.TestParams)) *MockManager_Test_Call
func (*MockManager_Test_Call) RunAndReturn ¶
func (_c *MockManager_Test_Call) RunAndReturn(run func(context.Context, mediaserver.TestParams) error) *MockManager_Test_Call
type MockServer ¶
MockServer is an autogenerated mock type for the Server type
func NewMockServer ¶
func NewMockServer(t interface {
mock.TestingT
Cleanup(func())
}) *MockServer
NewMockServer creates a new instance of MockServer. 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 (*MockServer) EXPECT ¶
func (_m *MockServer) EXPECT() *MockServer_Expecter
func (*MockServer) MovieDeepLink ¶
func (_m *MockServer) MovieDeepLink(ctx context.Context, hintSection string, tmdbID uint32, title string, year uint16) (string, error)
MovieDeepLink provides a mock function with given fields: ctx, hintSection, tmdbID, title, year
func (*MockServer) RefreshLibrary ¶
func (_m *MockServer) RefreshLibrary(ctx context.Context, libraryPath string, sectionKey string) error
RefreshLibrary provides a mock function with given fields: ctx, libraryPath, sectionKey
func (*MockServer) TVShowDeepLink ¶
func (_m *MockServer) TVShowDeepLink(ctx context.Context, hintSection string, tvdbID uint32, title string, year uint16) (string, error)
TVShowDeepLink provides a mock function with given fields: ctx, hintSection, tvdbID, title, year
func (*MockServer) TestConnection ¶
func (_m *MockServer) TestConnection(ctx context.Context) error
TestConnection provides a mock function with given fields: ctx
type MockServer_Expecter ¶
type MockServer_Expecter struct {
// contains filtered or unexported fields
}
func (*MockServer_Expecter) MovieDeepLink ¶
func (_e *MockServer_Expecter) MovieDeepLink(ctx interface{}, hintSection interface{}, tmdbID interface{}, title interface{}, year interface{}) *MockServer_MovieDeepLink_Call
MovieDeepLink is a helper method to define mock.On call
- ctx context.Context
- hintSection string
- tmdbID uint32
- title string
- year uint16
func (*MockServer_Expecter) RefreshLibrary ¶
func (_e *MockServer_Expecter) RefreshLibrary(ctx interface{}, libraryPath interface{}, sectionKey interface{}) *MockServer_RefreshLibrary_Call
RefreshLibrary is a helper method to define mock.On call
- ctx context.Context
- libraryPath string
- sectionKey string
func (*MockServer_Expecter) TVShowDeepLink ¶
func (_e *MockServer_Expecter) TVShowDeepLink(ctx interface{}, hintSection interface{}, tvdbID interface{}, title interface{}, year interface{}) *MockServer_TVShowDeepLink_Call
TVShowDeepLink is a helper method to define mock.On call
- ctx context.Context
- hintSection string
- tvdbID uint32
- title string
- year uint16
func (*MockServer_Expecter) TestConnection ¶
func (_e *MockServer_Expecter) TestConnection(ctx interface{}) *MockServer_TestConnection_Call
TestConnection is a helper method to define mock.On call
- ctx context.Context
type MockServer_MovieDeepLink_Call ¶
MockServer_MovieDeepLink_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MovieDeepLink'
func (*MockServer_MovieDeepLink_Call) Return ¶
func (_c *MockServer_MovieDeepLink_Call) Return(_a0 string, _a1 error) *MockServer_MovieDeepLink_Call
func (*MockServer_MovieDeepLink_Call) Run ¶
func (_c *MockServer_MovieDeepLink_Call) Run(run func(ctx context.Context, hintSection string, tmdbID uint32, title string, year uint16)) *MockServer_MovieDeepLink_Call
func (*MockServer_MovieDeepLink_Call) RunAndReturn ¶
func (_c *MockServer_MovieDeepLink_Call) RunAndReturn(run func(context.Context, string, uint32, string, uint16) (string, error)) *MockServer_MovieDeepLink_Call
type MockServer_RefreshLibrary_Call ¶
MockServer_RefreshLibrary_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RefreshLibrary'
func (*MockServer_RefreshLibrary_Call) Return ¶
func (_c *MockServer_RefreshLibrary_Call) Return(_a0 error) *MockServer_RefreshLibrary_Call
func (*MockServer_RefreshLibrary_Call) Run ¶
func (_c *MockServer_RefreshLibrary_Call) Run(run func(ctx context.Context, libraryPath string, sectionKey string)) *MockServer_RefreshLibrary_Call
func (*MockServer_RefreshLibrary_Call) RunAndReturn ¶
func (_c *MockServer_RefreshLibrary_Call) RunAndReturn(run func(context.Context, string, string) error) *MockServer_RefreshLibrary_Call
type MockServer_TVShowDeepLink_Call ¶
MockServer_TVShowDeepLink_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TVShowDeepLink'
func (*MockServer_TVShowDeepLink_Call) Return ¶
func (_c *MockServer_TVShowDeepLink_Call) Return(_a0 string, _a1 error) *MockServer_TVShowDeepLink_Call
func (*MockServer_TVShowDeepLink_Call) Run ¶
func (_c *MockServer_TVShowDeepLink_Call) Run(run func(ctx context.Context, hintSection string, tvdbID uint32, title string, year uint16)) *MockServer_TVShowDeepLink_Call
func (*MockServer_TVShowDeepLink_Call) RunAndReturn ¶
func (_c *MockServer_TVShowDeepLink_Call) RunAndReturn(run func(context.Context, string, uint32, string, uint16) (string, error)) *MockServer_TVShowDeepLink_Call
type MockServer_TestConnection_Call ¶
MockServer_TestConnection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TestConnection'
func (*MockServer_TestConnection_Call) Return ¶
func (_c *MockServer_TestConnection_Call) Return(_a0 error) *MockServer_TestConnection_Call
func (*MockServer_TestConnection_Call) Run ¶
func (_c *MockServer_TestConnection_Call) Run(run func(ctx context.Context)) *MockServer_TestConnection_Call
func (*MockServer_TestConnection_Call) RunAndReturn ¶
func (_c *MockServer_TestConnection_Call) RunAndReturn(run func(context.Context) error) *MockServer_TestConnection_Call