mocks

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 7 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 MockAPI added in v1.0.0

type MockAPI struct {
	mock.Mock
}

MockAPI is an autogenerated mock type for the API type

func NewMockAPI added in v1.0.0

func NewMockAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAPI

NewMockAPI creates a new instance of MockAPI. 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 (*MockAPI) EXPECT added in v1.0.0

func (_m *MockAPI) EXPECT() *MockAPI_Expecter

func (*MockAPI) SendMessage added in v1.0.0

func (_mock *MockAPI) SendMessage(ctx context.Context, p *bot.SendMessageParams) (*models.Message, error)

SendMessage provides a mock function for the type MockAPI

type MockAPI_Expecter added in v1.0.0

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

func (*MockAPI_Expecter) SendMessage added in v1.0.0

func (_e *MockAPI_Expecter) SendMessage(ctx interface{}, p interface{}) *MockAPI_SendMessage_Call

SendMessage is a helper method to define mock.On call

  • ctx context.Context
  • p *bot.SendMessageParams

type MockAPI_SendMessage_Call added in v1.0.0

type MockAPI_SendMessage_Call struct {
	*mock.Call
}

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

func (*MockAPI_SendMessage_Call) Return added in v1.0.0

func (*MockAPI_SendMessage_Call) Run added in v1.0.0

func (*MockAPI_SendMessage_Call) RunAndReturn added in v1.0.0

type MockBot added in v1.0.0

type MockBot struct {
	mock.Mock
}

MockBot is an autogenerated mock type for the Bot type

func NewMockBot added in v1.0.0

func NewMockBot(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockBot

NewMockBot creates a new instance of MockBot. 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 (*MockBot) EXPECT added in v1.0.0

func (_m *MockBot) EXPECT() *MockBot_Expecter

func (*MockBot) ID added in v1.0.0

func (_mock *MockBot) ID() int64

ID provides a mock function for the type MockBot

func (*MockBot) ProcessUpdate added in v1.0.0

func (_mock *MockBot) ProcessUpdate(ctx context.Context, upd *models.Update)

ProcessUpdate provides a mock function for the type MockBot

func (*MockBot) RegisterHandler added in v1.0.0

func (_mock *MockBot) RegisterHandler(handlerType bot.HandlerType, pattern string, matchType bot.MatchType, f telegram.HandlerFunc, m ...telegram.Middleware) string

RegisterHandler provides a mock function for the type MockBot

func (*MockBot) RegisterHandlerMatchFunc added in v1.0.0

func (_mock *MockBot) RegisterHandlerMatchFunc(matchFunc bot.MatchFunc, f telegram.HandlerFunc, m ...telegram.Middleware) string

RegisterHandlerMatchFunc provides a mock function for the type MockBot

func (*MockBot) RegisterHandlerRegexp added in v1.0.0

func (_mock *MockBot) RegisterHandlerRegexp(handlerType bot.HandlerType, re *regexp.Regexp, f telegram.HandlerFunc, m ...telegram.Middleware) string

RegisterHandlerRegexp provides a mock function for the type MockBot

func (*MockBot) SendMessage added in v1.0.0

func (_mock *MockBot) SendMessage(ctx context.Context, p *bot.SendMessageParams) (*models.Message, error)

SendMessage provides a mock function for the type MockBot

func (*MockBot) Start added in v1.0.0

func (_mock *MockBot) Start(ctx context.Context)

Start provides a mock function for the type MockBot

func (*MockBot) UnregisterHandler added in v1.0.0

func (_mock *MockBot) UnregisterHandler(id string)

UnregisterHandler provides a mock function for the type MockBot

type MockBot_Expecter added in v1.0.0

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

func (*MockBot_Expecter) ID added in v1.0.0

ID is a helper method to define mock.On call

func (*MockBot_Expecter) ProcessUpdate added in v1.0.0

func (_e *MockBot_Expecter) ProcessUpdate(ctx interface{}, upd interface{}) *MockBot_ProcessUpdate_Call

ProcessUpdate is a helper method to define mock.On call

  • ctx context.Context
  • upd *models.Update

func (*MockBot_Expecter) RegisterHandler added in v1.0.0

func (_e *MockBot_Expecter) RegisterHandler(handlerType interface{}, pattern interface{}, matchType interface{}, f interface{}, m ...interface{}) *MockBot_RegisterHandler_Call

RegisterHandler is a helper method to define mock.On call

  • handlerType bot.HandlerType
  • pattern string
  • matchType bot.MatchType
  • f telegram.HandlerFunc
  • m ...telegram.Middleware

func (*MockBot_Expecter) RegisterHandlerMatchFunc added in v1.0.0

func (_e *MockBot_Expecter) RegisterHandlerMatchFunc(matchFunc interface{}, f interface{}, m ...interface{}) *MockBot_RegisterHandlerMatchFunc_Call

RegisterHandlerMatchFunc is a helper method to define mock.On call

  • matchFunc bot.MatchFunc
  • f telegram.HandlerFunc
  • m ...telegram.Middleware

func (*MockBot_Expecter) RegisterHandlerRegexp added in v1.0.0

func (_e *MockBot_Expecter) RegisterHandlerRegexp(handlerType interface{}, re interface{}, f interface{}, m ...interface{}) *MockBot_RegisterHandlerRegexp_Call

RegisterHandlerRegexp is a helper method to define mock.On call

  • handlerType bot.HandlerType
  • re *regexp.Regexp
  • f telegram.HandlerFunc
  • m ...telegram.Middleware

func (*MockBot_Expecter) SendMessage added in v1.0.0

func (_e *MockBot_Expecter) SendMessage(ctx interface{}, p interface{}) *MockBot_SendMessage_Call

SendMessage is a helper method to define mock.On call

  • ctx context.Context
  • p *bot.SendMessageParams

func (*MockBot_Expecter) Start added in v1.0.0

func (_e *MockBot_Expecter) Start(ctx interface{}) *MockBot_Start_Call

Start is a helper method to define mock.On call

  • ctx context.Context

func (*MockBot_Expecter) UnregisterHandler added in v1.0.0

func (_e *MockBot_Expecter) UnregisterHandler(id interface{}) *MockBot_UnregisterHandler_Call

UnregisterHandler is a helper method to define mock.On call

  • id string

type MockBot_ID_Call added in v1.0.0

type MockBot_ID_Call struct {
	*mock.Call
}

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

func (*MockBot_ID_Call) Return added in v1.0.0

func (_c *MockBot_ID_Call) Return(n int64) *MockBot_ID_Call

func (*MockBot_ID_Call) Run added in v1.0.0

func (_c *MockBot_ID_Call) Run(run func()) *MockBot_ID_Call

func (*MockBot_ID_Call) RunAndReturn added in v1.0.0

func (_c *MockBot_ID_Call) RunAndReturn(run func() int64) *MockBot_ID_Call

type MockBot_ProcessUpdate_Call added in v1.0.0

type MockBot_ProcessUpdate_Call struct {
	*mock.Call
}

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

func (*MockBot_ProcessUpdate_Call) Return added in v1.0.0

func (*MockBot_ProcessUpdate_Call) Run added in v1.0.0

func (*MockBot_ProcessUpdate_Call) RunAndReturn added in v1.0.0

func (_c *MockBot_ProcessUpdate_Call) RunAndReturn(run func(ctx context.Context, upd *models.Update)) *MockBot_ProcessUpdate_Call

type MockBot_RegisterHandlerMatchFunc_Call added in v1.0.0

type MockBot_RegisterHandlerMatchFunc_Call struct {
	*mock.Call
}

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

func (*MockBot_RegisterHandlerMatchFunc_Call) Return added in v1.0.0

func (*MockBot_RegisterHandlerMatchFunc_Call) Run added in v1.0.0

func (*MockBot_RegisterHandlerMatchFunc_Call) RunAndReturn added in v1.0.0

type MockBot_RegisterHandlerRegexp_Call added in v1.0.0

type MockBot_RegisterHandlerRegexp_Call struct {
	*mock.Call
}

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

func (*MockBot_RegisterHandlerRegexp_Call) Return added in v1.0.0

func (*MockBot_RegisterHandlerRegexp_Call) Run added in v1.0.0

func (*MockBot_RegisterHandlerRegexp_Call) RunAndReturn added in v1.0.0

type MockBot_RegisterHandler_Call added in v1.0.0

type MockBot_RegisterHandler_Call struct {
	*mock.Call
}

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

func (*MockBot_RegisterHandler_Call) Return added in v1.0.0

func (*MockBot_RegisterHandler_Call) Run added in v1.0.0

func (*MockBot_RegisterHandler_Call) RunAndReturn added in v1.0.0

func (_c *MockBot_RegisterHandler_Call) RunAndReturn(run func(handlerType bot.HandlerType, pattern string, matchType bot.MatchType, f telegram.HandlerFunc, m ...telegram.Middleware) string) *MockBot_RegisterHandler_Call

type MockBot_SendMessage_Call added in v1.0.0

type MockBot_SendMessage_Call struct {
	*mock.Call
}

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

func (*MockBot_SendMessage_Call) Return added in v1.0.0

func (*MockBot_SendMessage_Call) Run added in v1.0.0

func (*MockBot_SendMessage_Call) RunAndReturn added in v1.0.0

type MockBot_Start_Call added in v1.0.0

type MockBot_Start_Call struct {
	*mock.Call
}

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

func (*MockBot_Start_Call) Return added in v1.0.0

func (_c *MockBot_Start_Call) Return() *MockBot_Start_Call

func (*MockBot_Start_Call) Run added in v1.0.0

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

func (*MockBot_Start_Call) RunAndReturn added in v1.0.0

func (_c *MockBot_Start_Call) RunAndReturn(run func(ctx context.Context)) *MockBot_Start_Call

type MockBot_UnregisterHandler_Call added in v1.0.0

type MockBot_UnregisterHandler_Call struct {
	*mock.Call
}

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

func (*MockBot_UnregisterHandler_Call) Return added in v1.0.0

func (*MockBot_UnregisterHandler_Call) Run added in v1.0.0

func (*MockBot_UnregisterHandler_Call) RunAndReturn added in v1.0.0

type MockEpisodeDownloader added in v1.0.0

type MockEpisodeDownloader struct {
	mock.Mock
}

MockEpisodeDownloader is an autogenerated mock type for the EpisodeDownloader type

func NewMockEpisodeDownloader added in v1.0.0

func NewMockEpisodeDownloader(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockEpisodeDownloader

NewMockEpisodeDownloader creates a new instance of MockEpisodeDownloader. 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 (*MockEpisodeDownloader) Download added in v1.0.0

func (_mock *MockEpisodeDownloader) Download(ctx context.Context, request domain.DownloadRequest) (*domain.Episode, error)

Download provides a mock function for the type MockEpisodeDownloader

func (*MockEpisodeDownloader) EXPECT added in v1.0.0

func (*MockEpisodeDownloader) Validate added in v1.0.0

func (_mock *MockEpisodeDownloader) Validate(ctx context.Context, request domain.DownloadRequest) error

Validate provides a mock function for the type MockEpisodeDownloader

type MockEpisodeDownloader_Download_Call added in v1.0.0

type MockEpisodeDownloader_Download_Call struct {
	*mock.Call
}

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

func (*MockEpisodeDownloader_Download_Call) Return added in v1.0.0

func (*MockEpisodeDownloader_Download_Call) Run added in v1.0.0

func (*MockEpisodeDownloader_Download_Call) RunAndReturn added in v1.0.0

type MockEpisodeDownloader_Expecter added in v1.0.0

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

func (*MockEpisodeDownloader_Expecter) Download added in v1.0.0

func (_e *MockEpisodeDownloader_Expecter) Download(ctx interface{}, request interface{}) *MockEpisodeDownloader_Download_Call

Download is a helper method to define mock.On call

  • ctx context.Context
  • request domain.DownloadRequest

func (*MockEpisodeDownloader_Expecter) Validate added in v1.0.0

func (_e *MockEpisodeDownloader_Expecter) Validate(ctx interface{}, request interface{}) *MockEpisodeDownloader_Validate_Call

Validate is a helper method to define mock.On call

  • ctx context.Context
  • request domain.DownloadRequest

type MockEpisodeDownloader_Validate_Call added in v1.0.0

type MockEpisodeDownloader_Validate_Call struct {
	*mock.Call
}

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

func (*MockEpisodeDownloader_Validate_Call) Return added in v1.0.0

func (*MockEpisodeDownloader_Validate_Call) Run added in v1.0.0

func (*MockEpisodeDownloader_Validate_Call) RunAndReturn added in v1.0.0

type MockEventBus added in v1.0.0

type MockEventBus struct {
	mock.Mock
}

MockEventBus is an autogenerated mock type for the EventBus type

func NewMockEventBus added in v1.0.0

func NewMockEventBus(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockEventBus

NewMockEventBus creates a new instance of MockEventBus. 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 (*MockEventBus) EXPECT added in v1.0.0

func (_m *MockEventBus) EXPECT() *MockEventBus_Expecter

func (*MockEventBus) Publish added in v1.0.0

func (_mock *MockEventBus) Publish(event domain.Event)

Publish provides a mock function for the type MockEventBus

func (*MockEventBus) Subscribe added in v1.0.0

func (_mock *MockEventBus) Subscribe(eventType domain.EventType, handler domain.EventHandler)

Subscribe provides a mock function for the type MockEventBus

func (*MockEventBus) Wait added in v1.0.0

func (_mock *MockEventBus) Wait()

Wait provides a mock function for the type MockEventBus

type MockEventBus_Expecter added in v1.0.0

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

func (*MockEventBus_Expecter) Publish added in v1.0.0

func (_e *MockEventBus_Expecter) Publish(event interface{}) *MockEventBus_Publish_Call

Publish is a helper method to define mock.On call

  • event domain.Event

func (*MockEventBus_Expecter) Subscribe added in v1.0.0

func (_e *MockEventBus_Expecter) Subscribe(eventType interface{}, handler interface{}) *MockEventBus_Subscribe_Call

Subscribe is a helper method to define mock.On call

  • eventType domain.EventType
  • handler domain.EventHandler

func (*MockEventBus_Expecter) Wait added in v1.0.0

Wait is a helper method to define mock.On call

type MockEventBus_Publish_Call added in v1.0.0

type MockEventBus_Publish_Call struct {
	*mock.Call
}

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

func (*MockEventBus_Publish_Call) Return added in v1.0.0

func (*MockEventBus_Publish_Call) Run added in v1.0.0

func (*MockEventBus_Publish_Call) RunAndReturn added in v1.0.0

func (_c *MockEventBus_Publish_Call) RunAndReturn(run func(event domain.Event)) *MockEventBus_Publish_Call

type MockEventBus_Subscribe_Call added in v1.0.0

type MockEventBus_Subscribe_Call struct {
	*mock.Call
}

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

func (*MockEventBus_Subscribe_Call) Return added in v1.0.0

func (*MockEventBus_Subscribe_Call) Run added in v1.0.0

func (*MockEventBus_Subscribe_Call) RunAndReturn added in v1.0.0

func (_c *MockEventBus_Subscribe_Call) RunAndReturn(run func(eventType domain.EventType, handler domain.EventHandler)) *MockEventBus_Subscribe_Call

type MockEventBus_Wait_Call added in v1.0.0

type MockEventBus_Wait_Call struct {
	*mock.Call
}

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

func (*MockEventBus_Wait_Call) Return added in v1.0.0

func (*MockEventBus_Wait_Call) Run added in v1.0.0

func (_c *MockEventBus_Wait_Call) Run(run func()) *MockEventBus_Wait_Call

func (*MockEventBus_Wait_Call) RunAndReturn added in v1.0.0

func (_c *MockEventBus_Wait_Call) RunAndReturn(run func()) *MockEventBus_Wait_Call

type MockFeedBuilder added in v1.0.0

type MockFeedBuilder struct {
	mock.Mock
}

MockFeedBuilder is an autogenerated mock type for the FeedBuilder type

func NewMockFeedBuilder added in v1.0.0

func NewMockFeedBuilder(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockFeedBuilder

NewMockFeedBuilder creates a new instance of MockFeedBuilder. 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 (*MockFeedBuilder) Build added in v1.0.0

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

Build provides a mock function for the type MockFeedBuilder

func (*MockFeedBuilder) EXPECT added in v1.0.0

func (*MockFeedBuilder) Info added in v1.0.0

func (_mock *MockFeedBuilder) Info(ctx context.Context) (*domain.FeedInfo, error)

Info provides a mock function for the type MockFeedBuilder

type MockFeedBuilder_Build_Call added in v1.0.0

type MockFeedBuilder_Build_Call struct {
	*mock.Call
}

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

func (*MockFeedBuilder_Build_Call) Return added in v1.0.0

func (*MockFeedBuilder_Build_Call) Run added in v1.0.0

func (*MockFeedBuilder_Build_Call) RunAndReturn added in v1.0.0

type MockFeedBuilder_Expecter added in v1.0.0

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

func (*MockFeedBuilder_Expecter) Build added in v1.0.0

func (_e *MockFeedBuilder_Expecter) Build(ctx interface{}) *MockFeedBuilder_Build_Call

Build is a helper method to define mock.On call

  • ctx context.Context

func (*MockFeedBuilder_Expecter) Info added in v1.0.0

func (_e *MockFeedBuilder_Expecter) Info(ctx interface{}) *MockFeedBuilder_Info_Call

Info is a helper method to define mock.On call

  • ctx context.Context

type MockFeedBuilder_Info_Call added in v1.0.0

type MockFeedBuilder_Info_Call struct {
	*mock.Call
}

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

func (*MockFeedBuilder_Info_Call) Return added in v1.0.0

func (*MockFeedBuilder_Info_Call) Run added in v1.0.0

func (*MockFeedBuilder_Info_Call) RunAndReturn added in v1.0.0

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, request domain.DownloadRequest) (*domain.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(request domain.DownloadRequest) 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{}, request interface{}) *MockPlatform_Download_Call

Download is a helper method to define mock.On call

  • ctx context.Context
  • request domain.DownloadRequest

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(request interface{}) *MockPlatform_Match_Call

Match is a helper method to define mock.On call

  • request domain.DownloadRequest

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 (*MockPlatform_Match_Call) RunAndReturn

func (_c *MockPlatform_Match_Call) RunAndReturn(run func(request domain.DownloadRequest) 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) (domain.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) EpisodeCount added in v1.0.0

func (_mock *MockStore) EpisodeCount(ctx context.Context) (int, error)

EpisodeCount provides a mock function for the type MockStore

func (*MockStore) EpisodeCreate

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

EpisodeCreate provides a mock function for the type MockStore

func (*MockStore) EpisodeDelete added in v1.1.0

func (_mock *MockStore) EpisodeDelete(ctx context.Context, id int64) error

EpisodeDelete provides a mock function for the type MockStore

func (*MockStore) EpisodeGet added in v1.0.0

func (_mock *MockStore) EpisodeGet(ctx context.Context, pageSize int, pageNumber int) ([]*domain.Episode, error)

EpisodeGet provides a mock function for the type MockStore

func (*MockStore) EpisodeGetByUrl added in v1.0.0

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

EpisodeGetByUrl provides a mock function for the type MockStore

func (*MockStore) EpisodeGetOldest added in v1.1.0

func (_mock *MockStore) EpisodeGetOldest(ctx context.Context, limit int) ([]*domain.Episode, error)

EpisodeGetOldest 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 (*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) (domain.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_EpisodeCount_Call added in v1.0.0

type MockStore_EpisodeCount_Call struct {
	*mock.Call
}

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

func (*MockStore_EpisodeCount_Call) Return added in v1.0.0

func (*MockStore_EpisodeCount_Call) Run added in v1.0.0

func (*MockStore_EpisodeCount_Call) RunAndReturn added in v1.0.0

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_EpisodeDelete_Call added in v1.1.0

type MockStore_EpisodeDelete_Call struct {
	*mock.Call
}

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

func (*MockStore_EpisodeDelete_Call) Return added in v1.1.0

func (*MockStore_EpisodeDelete_Call) Run added in v1.1.0

func (*MockStore_EpisodeDelete_Call) RunAndReturn added in v1.1.0

type MockStore_EpisodeGetByUrl_Call added in v1.0.0

type MockStore_EpisodeGetByUrl_Call struct {
	*mock.Call
}

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

func (*MockStore_EpisodeGetByUrl_Call) Return added in v1.0.0

func (*MockStore_EpisodeGetByUrl_Call) Run added in v1.0.0

func (*MockStore_EpisodeGetByUrl_Call) RunAndReturn added in v1.0.0

type MockStore_EpisodeGetOldest_Call added in v1.1.0

type MockStore_EpisodeGetOldest_Call struct {
	*mock.Call
}

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

func (*MockStore_EpisodeGetOldest_Call) Return added in v1.1.0

func (*MockStore_EpisodeGetOldest_Call) Run added in v1.1.0

func (*MockStore_EpisodeGetOldest_Call) RunAndReturn added in v1.1.0

type MockStore_EpisodeGet_Call added in v1.0.0

type MockStore_EpisodeGet_Call struct {
	*mock.Call
}

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

func (*MockStore_EpisodeGet_Call) Return added in v1.0.0

func (*MockStore_EpisodeGet_Call) Run added in v1.0.0

func (_c *MockStore_EpisodeGet_Call) Run(run func(ctx context.Context, pageSize int, pageNumber int)) *MockStore_EpisodeGet_Call

func (*MockStore_EpisodeGet_Call) RunAndReturn added in v1.0.0

func (_c *MockStore_EpisodeGet_Call) RunAndReturn(run func(ctx context.Context, pageSize int, pageNumber int) ([]*domain.Episode, error)) *MockStore_EpisodeGet_Call

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) EpisodeCount added in v1.0.0

func (_e *MockStore_Expecter) EpisodeCount(ctx interface{}) *MockStore_EpisodeCount_Call

EpisodeCount is a helper method to define mock.On call

  • ctx context.Context

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 *domain.Episode

func (*MockStore_Expecter) EpisodeDelete added in v1.1.0

func (_e *MockStore_Expecter) EpisodeDelete(ctx interface{}, id interface{}) *MockStore_EpisodeDelete_Call

EpisodeDelete is a helper method to define mock.On call

  • ctx context.Context
  • id int64

func (*MockStore_Expecter) EpisodeGet added in v1.0.0

func (_e *MockStore_Expecter) EpisodeGet(ctx interface{}, pageSize interface{}, pageNumber interface{}) *MockStore_EpisodeGet_Call

EpisodeGet is a helper method to define mock.On call

  • ctx context.Context
  • pageSize int
  • pageNumber int

func (*MockStore_Expecter) EpisodeGetByUrl added in v1.0.0

func (_e *MockStore_Expecter) EpisodeGetByUrl(ctx interface{}, url interface{}) *MockStore_EpisodeGetByUrl_Call

EpisodeGetByUrl is a helper method to define mock.On call

  • ctx context.Context
  • url string

func (*MockStore_Expecter) EpisodeGetOldest added in v1.1.0

func (_e *MockStore_Expecter) EpisodeGetOldest(ctx interface{}, limit interface{}) *MockStore_EpisodeGetOldest_Call

EpisodeGetOldest is a helper method to define mock.On call

  • ctx context.Context
  • limit int

func (*MockStore_Expecter) Rollback

Rollback is a helper method to define mock.On call

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