mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: AGPL-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 MockFetcher

type MockFetcher struct {
	mock.Mock
}

MockFetcher is an autogenerated mock type for the Fetcher type

func NewMockFetcher

func NewMockFetcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockFetcher

NewMockFetcher creates a new instance of MockFetcher. 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 (*MockFetcher) EXPECT

func (_m *MockFetcher) EXPECT() *MockFetcher_Expecter

func (*MockFetcher) GetSessionsOnServer

func (_mock *MockFetcher) GetSessionsOnServer(ctx context.Context, server plex.Server) ([]plex.Session, error)

GetSessionsOnServer provides a mock function for the type MockFetcher

type MockFetcher_Expecter

type MockFetcher_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockFetcher_Expecter) GetSessionsOnServer

func (_e *MockFetcher_Expecter) GetSessionsOnServer(ctx any, server any) *MockFetcher_GetSessionsOnServer_Call

GetSessionsOnServer is a helper method to define mock.On call

  • ctx context.Context
  • server plex.Server

type MockFetcher_GetSessionsOnServer_Call

type MockFetcher_GetSessionsOnServer_Call struct {
	*mock.Call
}

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

func (*MockFetcher_GetSessionsOnServer_Call) Return

func (*MockFetcher_GetSessionsOnServer_Call) Run

func (*MockFetcher_GetSessionsOnServer_Call) RunAndReturn

Jump to

Keyboard shortcuts

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