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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDownloader

type MockDownloader struct {
	mock.Mock
}

MockDownloader is an autogenerated mock type for the Downloader type

func NewMockDownloader

func NewMockDownloader(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDownloader

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

func (*MockDownloader) Grab

func (_m *MockDownloader) Grab(ctx context.Context, result indexer.SearchResult, movieID uint32) (*ent.DownloadRecord, error)

Grab provides a mock function with given fields: ctx, result, movieID

type MockDownloader_Expecter

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

func (*MockDownloader_Expecter) Grab

func (_e *MockDownloader_Expecter) Grab(ctx interface{}, result interface{}, movieID interface{}) *MockDownloader_Grab_Call

Grab is a helper method to define mock.On call

  • ctx context.Context
  • result indexer.SearchResult
  • movieID uint32

type MockDownloader_Grab_Call

type MockDownloader_Grab_Call struct {
	*mock.Call
}

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

func (*MockDownloader_Grab_Call) Return

func (*MockDownloader_Grab_Call) Run

func (*MockDownloader_Grab_Call) RunAndReturn

type MockEpisodeGrabber

type MockEpisodeGrabber struct {
	mock.Mock
}

MockEpisodeGrabber is an autogenerated mock type for the EpisodeGrabber type

func NewMockEpisodeGrabber

func NewMockEpisodeGrabber(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockEpisodeGrabber

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

func (*MockEpisodeGrabber) GrabEpisode

func (_m *MockEpisodeGrabber) GrabEpisode(ctx context.Context, result indexer.SearchResult, episodeID uint32) (*ent.DownloadRecord, error)

GrabEpisode provides a mock function with given fields: ctx, result, episodeID

type MockEpisodeGrabber_Expecter

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

func (*MockEpisodeGrabber_Expecter) GrabEpisode

func (_e *MockEpisodeGrabber_Expecter) GrabEpisode(ctx interface{}, result interface{}, episodeID interface{}) *MockEpisodeGrabber_GrabEpisode_Call

GrabEpisode is a helper method to define mock.On call

  • ctx context.Context
  • result indexer.SearchResult
  • episodeID uint32

type MockEpisodeGrabber_GrabEpisode_Call

type MockEpisodeGrabber_GrabEpisode_Call struct {
	*mock.Call
}

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

func (*MockEpisodeGrabber_GrabEpisode_Call) Return

func (*MockEpisodeGrabber_GrabEpisode_Call) Run

func (*MockEpisodeGrabber_GrabEpisode_Call) RunAndReturn

type MockFeedRunner

type MockFeedRunner struct {
	mock.Mock
}

MockFeedRunner is an autogenerated mock type for the FeedRunner type

func NewMockFeedRunner

func NewMockFeedRunner(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockFeedRunner

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

func (*MockFeedRunner) Run

func (_m *MockFeedRunner) Run(ctx context.Context) error

Run provides a mock function with given fields: ctx

type MockFeedRunner_Expecter

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

func (*MockFeedRunner_Expecter) Run

func (_e *MockFeedRunner_Expecter) Run(ctx interface{}) *MockFeedRunner_Run_Call

Run is a helper method to define mock.On call

  • ctx context.Context

type MockFeedRunner_Run_Call

type MockFeedRunner_Run_Call struct {
	*mock.Call
}

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

func (*MockFeedRunner_Run_Call) Return

func (*MockFeedRunner_Run_Call) Run

func (*MockFeedRunner_Run_Call) RunAndReturn

type MockIndexerFeeder

type MockIndexerFeeder struct {
	mock.Mock
}

MockIndexerFeeder is an autogenerated mock type for the IndexerFeeder type

func NewMockIndexerFeeder

func NewMockIndexerFeeder(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockIndexerFeeder

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

func (*MockIndexerFeeder) Feed

func (_m *MockIndexerFeeder) Feed(ctx context.Context, indexerName string) ([]indexer.SearchResult, error)

Feed provides a mock function with given fields: ctx, indexerName

type MockIndexerFeeder_Expecter

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

func (*MockIndexerFeeder_Expecter) Feed

func (_e *MockIndexerFeeder_Expecter) Feed(ctx interface{}, indexerName interface{}) *MockIndexerFeeder_Feed_Call

Feed is a helper method to define mock.On call

  • ctx context.Context
  • indexerName string

type MockIndexerFeeder_Feed_Call

type MockIndexerFeeder_Feed_Call struct {
	*mock.Call
}

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

func (*MockIndexerFeeder_Feed_Call) Return

func (*MockIndexerFeeder_Feed_Call) Run

func (_c *MockIndexerFeeder_Feed_Call) Run(run func(ctx context.Context, indexerName string)) *MockIndexerFeeder_Feed_Call

func (*MockIndexerFeeder_Feed_Call) RunAndReturn

type MockIndexerSearcher

type MockIndexerSearcher struct {
	mock.Mock
}

MockIndexerSearcher is an autogenerated mock type for the IndexerSearcher type

func NewMockIndexerSearcher

func NewMockIndexerSearcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockIndexerSearcher

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

func (*MockIndexerSearcher) SearchMovie

func (_m *MockIndexerSearcher) SearchMovie(ctx context.Context, titles []string, tmdbID uint32) ([]indexer.SearchResult, error)

SearchMovie provides a mock function with given fields: ctx, titles, tmdbID

type MockIndexerSearcher_Expecter

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

func (*MockIndexerSearcher_Expecter) SearchMovie

func (_e *MockIndexerSearcher_Expecter) SearchMovie(ctx interface{}, titles interface{}, tmdbID interface{}) *MockIndexerSearcher_SearchMovie_Call

SearchMovie is a helper method to define mock.On call

  • ctx context.Context
  • titles []string
  • tmdbID uint32

type MockIndexerSearcher_SearchMovie_Call

type MockIndexerSearcher_SearchMovie_Call struct {
	*mock.Call
}

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

func (*MockIndexerSearcher_SearchMovie_Call) Return

func (*MockIndexerSearcher_SearchMovie_Call) Run

func (*MockIndexerSearcher_SearchMovie_Call) RunAndReturn

type MockMissingSearchRunner

type MockMissingSearchRunner struct {
	mock.Mock
}

MockMissingSearchRunner is an autogenerated mock type for the MissingSearchRunner type

func NewMockMissingSearchRunner

func NewMockMissingSearchRunner(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMissingSearchRunner

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

func (*MockMissingSearchRunner) Run

Run provides a mock function with given fields: ctx

type MockMissingSearchRunner_Expecter

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

func (*MockMissingSearchRunner_Expecter) Run

Run is a helper method to define mock.On call

  • ctx context.Context

type MockMissingSearchRunner_Run_Call

type MockMissingSearchRunner_Run_Call struct {
	*mock.Call
}

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

func (*MockMissingSearchRunner_Run_Call) Return

func (*MockMissingSearchRunner_Run_Call) Run

func (*MockMissingSearchRunner_Run_Call) RunAndReturn

type MockTVIndexerSearcher

type MockTVIndexerSearcher struct {
	mock.Mock
}

MockTVIndexerSearcher is an autogenerated mock type for the TVIndexerSearcher type

func NewMockTVIndexerSearcher

func NewMockTVIndexerSearcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTVIndexerSearcher

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

func (*MockTVIndexerSearcher) SearchEpisode

func (_m *MockTVIndexerSearcher) 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 (*MockTVIndexerSearcher) SearchSeason

func (_m *MockTVIndexerSearcher) 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

type MockTVIndexerSearcher_Expecter

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

func (*MockTVIndexerSearcher_Expecter) SearchEpisode

func (_e *MockTVIndexerSearcher_Expecter) SearchEpisode(ctx interface{}, titles interface{}, tvdbID interface{}, season interface{}, episode interface{}) *MockTVIndexerSearcher_SearchEpisode_Call

SearchEpisode is a helper method to define mock.On call

  • ctx context.Context
  • titles []string
  • tvdbID uint32
  • season uint16
  • episode uint16

func (*MockTVIndexerSearcher_Expecter) SearchSeason

func (_e *MockTVIndexerSearcher_Expecter) SearchSeason(ctx interface{}, titles interface{}, tvdbID interface{}, season interface{}) *MockTVIndexerSearcher_SearchSeason_Call

SearchSeason is a helper method to define mock.On call

  • ctx context.Context
  • titles []string
  • tvdbID uint32
  • season uint16

type MockTVIndexerSearcher_SearchEpisode_Call

type MockTVIndexerSearcher_SearchEpisode_Call struct {
	*mock.Call
}

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

func (*MockTVIndexerSearcher_SearchEpisode_Call) Return

func (*MockTVIndexerSearcher_SearchEpisode_Call) Run

func (*MockTVIndexerSearcher_SearchEpisode_Call) RunAndReturn

type MockTVIndexerSearcher_SearchSeason_Call

type MockTVIndexerSearcher_SearchSeason_Call struct {
	*mock.Call
}

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

func (*MockTVIndexerSearcher_SearchSeason_Call) Return

func (*MockTVIndexerSearcher_SearchSeason_Call) Run

func (*MockTVIndexerSearcher_SearchSeason_Call) RunAndReturn

Jump to

Keyboard shortcuts

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