mocks

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2025 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBuilder

type MockBuilder struct {
	mock.Mock
}

MockBuilder is an autogenerated mock type for the Builder type

func NewMockBuilder

func NewMockBuilder(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockBuilder

NewMockBuilder creates a new instance of MockBuilder. 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 (*MockBuilder) Build

func (_mock *MockBuilder) Build(ctx context.Context) error

Build provides a mock function for the type MockBuilder

func (*MockBuilder) EXPECT

func (_m *MockBuilder) EXPECT() *MockBuilder_Expecter

type MockBuilder_Build_Call

type MockBuilder_Build_Call struct {
	*mock.Call
}

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

func (*MockBuilder_Build_Call) Return

func (*MockBuilder_Build_Call) Run

func (*MockBuilder_Build_Call) RunAndReturn

func (_c *MockBuilder_Build_Call) RunAndReturn(run func(ctx context.Context) error) *MockBuilder_Build_Call

type MockBuilder_Expecter

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

func (*MockBuilder_Expecter) Build

func (_e *MockBuilder_Expecter) Build(ctx interface{}) *MockBuilder_Build_Call

Build is a helper method to define mock.On call

  • ctx context.Context

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

func (_mock *MockDownloader) Download(ctx context.Context, req entities.Request) (*entities.Episode, error)

Download provides a mock function for the type MockDownloader

func (*MockDownloader) EXPECT

type MockDownloader_Download_Call

type MockDownloader_Download_Call struct {
	*mock.Call
}

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

func (*MockDownloader_Download_Call) Return

func (*MockDownloader_Download_Call) Run

func (*MockDownloader_Download_Call) RunAndReturn

type MockDownloader_Expecter

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

func (*MockDownloader_Expecter) Download

func (_e *MockDownloader_Expecter) Download(ctx interface{}, req interface{}) *MockDownloader_Download_Call

Download is a helper method to define mock.On call

  • ctx context.Context
  • req entities.Request

type MockPlatform

type MockPlatform struct {
	mock.Mock
}

MockPlatform is an autogenerated mock type for the Platform type

func NewMockPlatform

func NewMockPlatform(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPlatform

NewMockPlatform creates a new instance of MockPlatform. 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 (*MockPlatform) Download

func (_mock *MockPlatform) Download(ctx context.Context, req entities.Request) (*entities.Episode, error)

Download provides a mock function for the type MockPlatform

func (*MockPlatform) EXPECT

func (_m *MockPlatform) EXPECT() *MockPlatform_Expecter

func (*MockPlatform) ID

func (_mock *MockPlatform) ID() string

ID provides a mock function for the type MockPlatform

func (*MockPlatform) Init

func (_mock *MockPlatform) Init(ctx context.Context) error

Init provides a mock function for the type MockPlatform

func (*MockPlatform) Match

func (_mock *MockPlatform) Match(url string) bool

Match provides a mock function for the type MockPlatform

type MockPlatform_Download_Call

type MockPlatform_Download_Call struct {
	*mock.Call
}

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

func (*MockPlatform_Download_Call) Return

func (*MockPlatform_Download_Call) Run

func (*MockPlatform_Download_Call) RunAndReturn

type MockPlatform_Expecter

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

func (*MockPlatform_Expecter) Download

func (_e *MockPlatform_Expecter) Download(ctx interface{}, req interface{}) *MockPlatform_Download_Call

Download is a helper method to define mock.On call

  • ctx context.Context
  • req entities.Request

func (*MockPlatform_Expecter) ID

ID is a helper method to define mock.On call

func (*MockPlatform_Expecter) Init

func (_e *MockPlatform_Expecter) Init(ctx interface{}) *MockPlatform_Init_Call

Init is a helper method to define mock.On call

  • ctx context.Context

func (*MockPlatform_Expecter) Match

func (_e *MockPlatform_Expecter) Match(url interface{}) *MockPlatform_Match_Call

Match is a helper method to define mock.On call

  • url string

type MockPlatform_ID_Call

type MockPlatform_ID_Call struct {
	*mock.Call
}

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

func (*MockPlatform_ID_Call) Return

func (*MockPlatform_ID_Call) Run

func (_c *MockPlatform_ID_Call) Run(run func()) *MockPlatform_ID_Call

func (*MockPlatform_ID_Call) RunAndReturn

func (_c *MockPlatform_ID_Call) RunAndReturn(run func() string) *MockPlatform_ID_Call

type MockPlatform_Init_Call

type MockPlatform_Init_Call struct {
	*mock.Call
}

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

func (*MockPlatform_Init_Call) Return

func (*MockPlatform_Init_Call) Run

func (*MockPlatform_Init_Call) RunAndReturn

func (_c *MockPlatform_Init_Call) RunAndReturn(run func(ctx context.Context) error) *MockPlatform_Init_Call

type MockPlatform_Match_Call

type MockPlatform_Match_Call struct {
	*mock.Call
}

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

func (*MockPlatform_Match_Call) Return

func (*MockPlatform_Match_Call) Run

func (_c *MockPlatform_Match_Call) Run(run func(url string)) *MockPlatform_Match_Call

func (*MockPlatform_Match_Call) RunAndReturn

func (_c *MockPlatform_Match_Call) RunAndReturn(run func(url string) bool) *MockPlatform_Match_Call

type MockStore

type MockStore struct {
	mock.Mock
}

MockStore is an autogenerated mock type for the Store type

func NewMockStore

func NewMockStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockStore

NewMockStore creates a new instance of MockStore. 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 (*MockStore) Begin

func (_mock *MockStore) Begin(ctx context.Context) (store.Store, error)

Begin provides a mock function for the type MockStore

func (*MockStore) Close

func (_mock *MockStore) Close()

Close provides a mock function for the type MockStore

func (*MockStore) Commit

func (_mock *MockStore) Commit() error

Commit provides a mock function for the type MockStore

func (*MockStore) EXPECT

func (_m *MockStore) EXPECT() *MockStore_Expecter

func (*MockStore) EpisodeCreate

func (_mock *MockStore) EpisodeCreate(ctx context.Context, episode *entities.Episode) error

EpisodeCreate provides a mock function for the type MockStore

func (*MockStore) EpisodeGetByOriginalUrl

func (_mock *MockStore) EpisodeGetByOriginalUrl(ctx context.Context, url string) ([]*entities.Episode, error)

EpisodeGetByOriginalUrl provides a mock function for the type MockStore

func (*MockStore) EpisodeListAll

func (_mock *MockStore) EpisodeListAll(ctx context.Context) ([]*entities.Episode, error)

EpisodeListAll provides a mock function for the type MockStore

func (*MockStore) ProcessCountByUrlAndStatus

func (_mock *MockStore) ProcessCountByUrlAndStatus(ctx context.Context, url string, status entities.Status) (int, error)

ProcessCountByUrlAndStatus provides a mock function for the type MockStore

func (*MockStore) ProcessGetByStatus

func (_mock *MockStore) ProcessGetByStatus(ctx context.Context, status entities.Status) ([]*entities.Process, error)

ProcessGetByStatus provides a mock function for the type MockStore

func (*MockStore) ProcessUpsert

func (_mock *MockStore) ProcessUpsert(ctx context.Context, process *entities.Process) error

ProcessUpsert provides a mock function for the type MockStore

func (*MockStore) Rollback

func (_mock *MockStore) Rollback() error

Rollback provides a mock function for the type MockStore

type MockStore_Begin_Call

type MockStore_Begin_Call struct {
	*mock.Call
}

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

func (*MockStore_Begin_Call) Return

func (_c *MockStore_Begin_Call) Return(store1 store.Store, err error) *MockStore_Begin_Call

func (*MockStore_Begin_Call) Run

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

func (*MockStore_Begin_Call) RunAndReturn

func (_c *MockStore_Begin_Call) RunAndReturn(run func(ctx context.Context) (store.Store, error)) *MockStore_Begin_Call

type MockStore_Close_Call

type MockStore_Close_Call struct {
	*mock.Call
}

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

func (*MockStore_Close_Call) Return

func (*MockStore_Close_Call) Run

func (_c *MockStore_Close_Call) Run(run func()) *MockStore_Close_Call

func (*MockStore_Close_Call) RunAndReturn

func (_c *MockStore_Close_Call) RunAndReturn(run func()) *MockStore_Close_Call

type MockStore_Commit_Call

type MockStore_Commit_Call struct {
	*mock.Call
}

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

func (*MockStore_Commit_Call) Return

func (*MockStore_Commit_Call) Run

func (_c *MockStore_Commit_Call) Run(run func()) *MockStore_Commit_Call

func (*MockStore_Commit_Call) RunAndReturn

func (_c *MockStore_Commit_Call) RunAndReturn(run func() error) *MockStore_Commit_Call

type MockStore_EpisodeCreate_Call

type MockStore_EpisodeCreate_Call struct {
	*mock.Call
}

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

func (*MockStore_EpisodeCreate_Call) Return

func (*MockStore_EpisodeCreate_Call) Run

func (*MockStore_EpisodeCreate_Call) RunAndReturn

type MockStore_EpisodeGetByOriginalUrl_Call

type MockStore_EpisodeGetByOriginalUrl_Call struct {
	*mock.Call
}

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

func (*MockStore_EpisodeGetByOriginalUrl_Call) Return

func (*MockStore_EpisodeGetByOriginalUrl_Call) Run

func (*MockStore_EpisodeGetByOriginalUrl_Call) RunAndReturn

type MockStore_EpisodeListAll_Call

type MockStore_EpisodeListAll_Call struct {
	*mock.Call
}

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

func (*MockStore_EpisodeListAll_Call) Return

func (*MockStore_EpisodeListAll_Call) Run

func (*MockStore_EpisodeListAll_Call) RunAndReturn

type MockStore_Expecter

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

func (*MockStore_Expecter) Begin

func (_e *MockStore_Expecter) Begin(ctx interface{}) *MockStore_Begin_Call

Begin is a helper method to define mock.On call

  • ctx context.Context

func (*MockStore_Expecter) Close

Close is a helper method to define mock.On call

func (*MockStore_Expecter) Commit

Commit is a helper method to define mock.On call

func (*MockStore_Expecter) EpisodeCreate

func (_e *MockStore_Expecter) EpisodeCreate(ctx interface{}, episode interface{}) *MockStore_EpisodeCreate_Call

EpisodeCreate is a helper method to define mock.On call

  • ctx context.Context
  • episode *entities.Episode

func (*MockStore_Expecter) EpisodeGetByOriginalUrl

func (_e *MockStore_Expecter) EpisodeGetByOriginalUrl(ctx interface{}, url interface{}) *MockStore_EpisodeGetByOriginalUrl_Call

EpisodeGetByOriginalUrl is a helper method to define mock.On call

  • ctx context.Context
  • url string

func (*MockStore_Expecter) EpisodeListAll

func (_e *MockStore_Expecter) EpisodeListAll(ctx interface{}) *MockStore_EpisodeListAll_Call

EpisodeListAll is a helper method to define mock.On call

  • ctx context.Context

func (*MockStore_Expecter) ProcessCountByUrlAndStatus

func (_e *MockStore_Expecter) ProcessCountByUrlAndStatus(ctx interface{}, url interface{}, status interface{}) *MockStore_ProcessCountByUrlAndStatus_Call

ProcessCountByUrlAndStatus is a helper method to define mock.On call

  • ctx context.Context
  • url string
  • status entities.Status

func (*MockStore_Expecter) ProcessGetByStatus

func (_e *MockStore_Expecter) ProcessGetByStatus(ctx interface{}, status interface{}) *MockStore_ProcessGetByStatus_Call

ProcessGetByStatus is a helper method to define mock.On call

  • ctx context.Context
  • status entities.Status

func (*MockStore_Expecter) ProcessUpsert

func (_e *MockStore_Expecter) ProcessUpsert(ctx interface{}, process interface{}) *MockStore_ProcessUpsert_Call

ProcessUpsert is a helper method to define mock.On call

  • ctx context.Context
  • process *entities.Process

func (*MockStore_Expecter) Rollback

Rollback is a helper method to define mock.On call

type MockStore_ProcessCountByUrlAndStatus_Call

type MockStore_ProcessCountByUrlAndStatus_Call struct {
	*mock.Call
}

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

func (*MockStore_ProcessCountByUrlAndStatus_Call) Return

func (*MockStore_ProcessCountByUrlAndStatus_Call) Run

func (*MockStore_ProcessCountByUrlAndStatus_Call) RunAndReturn

type MockStore_ProcessGetByStatus_Call

type MockStore_ProcessGetByStatus_Call struct {
	*mock.Call
}

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

func (*MockStore_ProcessGetByStatus_Call) Return

func (*MockStore_ProcessGetByStatus_Call) Run

func (*MockStore_ProcessGetByStatus_Call) RunAndReturn

type MockStore_ProcessUpsert_Call

type MockStore_ProcessUpsert_Call struct {
	*mock.Call
}

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

func (*MockStore_ProcessUpsert_Call) Return

func (*MockStore_ProcessUpsert_Call) Run

func (*MockStore_ProcessUpsert_Call) RunAndReturn

type MockStore_Rollback_Call

type MockStore_Rollback_Call struct {
	*mock.Call
}

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

func (*MockStore_Rollback_Call) Return

func (*MockStore_Rollback_Call) Run

func (_c *MockStore_Rollback_Call) Run(run func()) *MockStore_Rollback_Call

func (*MockStore_Rollback_Call) RunAndReturn

func (_c *MockStore_Rollback_Call) RunAndReturn(run func() error) *MockStore_Rollback_Call

Jump to

Keyboard shortcuts

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