mocks

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockManager

type MockManager struct {
	mock.Mock
}

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

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

type MockManager_BeginPlexPin_Call struct {
	*mock.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 (*MockManager_BeginPlexPin_Call) Run

func (*MockManager_BeginPlexPin_Call) RunAndReturn

type MockManager_DiscoverSections_Call

type MockManager_DiscoverSections_Call struct {
	*mock.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 (*MockManager_DiscoverSections_Call) Run

func (*MockManager_DiscoverSections_Call) RunAndReturn

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

type MockManager_PollPlexPin_Call struct {
	*mock.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 (*MockManager_PollPlexPin_Call) Run

func (*MockManager_PollPlexPin_Call) RunAndReturn

type MockManager_TestByName_Call

type MockManager_TestByName_Call struct {
	*mock.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 (*MockManager_TestByName_Call) Run

func (*MockManager_TestByName_Call) RunAndReturn

type MockManager_Test_Call

type MockManager_Test_Call struct {
	*mock.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 (*MockManager_Test_Call) Run

func (*MockManager_Test_Call) RunAndReturn

type MockServer

type MockServer struct {
	mock.Mock
}

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 (_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 (_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 (_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 (_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 struct {
	*mock.Call
}

MockServer_MovieDeepLink_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MovieDeepLink'

func (_c *MockServer_MovieDeepLink_Call) Run(run func(ctx context.Context, hintSection string, tmdbID uint32, title string, year uint16)) *MockServer_MovieDeepLink_Call

type MockServer_RefreshLibrary_Call

type MockServer_RefreshLibrary_Call struct {
	*mock.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 (*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

type MockServer_TVShowDeepLink_Call struct {
	*mock.Call
}

MockServer_TVShowDeepLink_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TVShowDeepLink'

func (_c *MockServer_TVShowDeepLink_Call) Run(run func(ctx context.Context, hintSection string, tvdbID uint32, title string, year uint16)) *MockServer_TVShowDeepLink_Call

type MockServer_TestConnection_Call

type MockServer_TestConnection_Call struct {
	*mock.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 (*MockServer_TestConnection_Call) Run

func (*MockServer_TestConnection_Call) RunAndReturn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL