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 MockClient

type MockClient struct {
	mock.Mock
}

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

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

func (_c *MockClient_Feed_Call) Run(run func(ctx context.Context)) *MockClient_Feed_Call

func (*MockClient_Feed_Call) RunAndReturn

type MockClient_Search_Call

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

func (*MockClient_Search_Call) RunAndReturn

type MockClient_TestConnection_Call

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

func (*MockClient_TestConnection_Call) RunAndReturn

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) 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

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

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

type MockManager_SearchEpisode_Call

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

type MockManager_SearchMovie_Call

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

type MockManager_SearchSeason_Call

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

type MockManager_SearchSeries_Call

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

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

Jump to

Keyboard shortcuts

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