Documentation
¶
Index ¶
- type MockUseCase
- func (_m *MockUseCase) EXPECT() *MockUseCase_Expecter
- func (_m *MockUseCase) GetAllShowsFeed(_a0 context.Context, _a1 string) (*feeds.Feed, error)
- func (_m *MockUseCase) GetEpisodes(_a0 context.Context, _a1 string, _a2 string) ([]*models.Episode, error)
- func (_m *MockUseCase) GetEpisodesFeed(_a0 context.Context, _a1 string, _a2 string) (*feeds.Feed, error)
- func (_m *MockUseCase) GetShow(_a0 context.Context, _a1 string, _a2 string) (*models.Show, error)
- func (_m *MockUseCase) GetShows(_a0 context.Context, _a1 string) ([]*models.Show, error)
- func (_m *MockUseCase) GetStation(_a0 context.Context, _a1 string) (*models.Station, error)
- func (_m *MockUseCase) GetStations(_a0 context.Context) ([]*models.Station, error)
- type MockUseCase_Expecter
- func (_e *MockUseCase_Expecter) GetAllShowsFeed(_a0 interface{}, _a1 interface{}) *MockUseCase_GetAllShowsFeed_Call
- func (_e *MockUseCase_Expecter) GetEpisodes(_a0 interface{}, _a1 interface{}, _a2 interface{}) *MockUseCase_GetEpisodes_Call
- func (_e *MockUseCase_Expecter) GetEpisodesFeed(_a0 interface{}, _a1 interface{}, _a2 interface{}) *MockUseCase_GetEpisodesFeed_Call
- func (_e *MockUseCase_Expecter) GetShow(_a0 interface{}, _a1 interface{}, _a2 interface{}) *MockUseCase_GetShow_Call
- func (_e *MockUseCase_Expecter) GetShows(_a0 interface{}, _a1 interface{}) *MockUseCase_GetShows_Call
- func (_e *MockUseCase_Expecter) GetStation(_a0 interface{}, _a1 interface{}) *MockUseCase_GetStation_Call
- func (_e *MockUseCase_Expecter) GetStations(_a0 interface{}) *MockUseCase_GetStations_Call
- type MockUseCase_GetAllShowsFeed_Call
- func (_c *MockUseCase_GetAllShowsFeed_Call) Return(_a0 *feeds.Feed, _a1 error) *MockUseCase_GetAllShowsFeed_Call
- func (_c *MockUseCase_GetAllShowsFeed_Call) Run(run func(_a0 context.Context, _a1 string)) *MockUseCase_GetAllShowsFeed_Call
- func (_c *MockUseCase_GetAllShowsFeed_Call) RunAndReturn(run func(context.Context, string) (*feeds.Feed, error)) *MockUseCase_GetAllShowsFeed_Call
- type MockUseCase_GetEpisodesFeed_Call
- func (_c *MockUseCase_GetEpisodesFeed_Call) Return(_a0 *feeds.Feed, _a1 error) *MockUseCase_GetEpisodesFeed_Call
- func (_c *MockUseCase_GetEpisodesFeed_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string)) *MockUseCase_GetEpisodesFeed_Call
- func (_c *MockUseCase_GetEpisodesFeed_Call) RunAndReturn(run func(context.Context, string, string) (*feeds.Feed, error)) *MockUseCase_GetEpisodesFeed_Call
- type MockUseCase_GetEpisodes_Call
- func (_c *MockUseCase_GetEpisodes_Call) Return(_a0 []*models.Episode, _a1 error) *MockUseCase_GetEpisodes_Call
- func (_c *MockUseCase_GetEpisodes_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string)) *MockUseCase_GetEpisodes_Call
- func (_c *MockUseCase_GetEpisodes_Call) RunAndReturn(run func(context.Context, string, string) ([]*models.Episode, error)) *MockUseCase_GetEpisodes_Call
- type MockUseCase_GetShow_Call
- func (_c *MockUseCase_GetShow_Call) Return(_a0 *models.Show, _a1 error) *MockUseCase_GetShow_Call
- func (_c *MockUseCase_GetShow_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string)) *MockUseCase_GetShow_Call
- func (_c *MockUseCase_GetShow_Call) RunAndReturn(run func(context.Context, string, string) (*models.Show, error)) *MockUseCase_GetShow_Call
- type MockUseCase_GetShows_Call
- func (_c *MockUseCase_GetShows_Call) Return(_a0 []*models.Show, _a1 error) *MockUseCase_GetShows_Call
- func (_c *MockUseCase_GetShows_Call) Run(run func(_a0 context.Context, _a1 string)) *MockUseCase_GetShows_Call
- func (_c *MockUseCase_GetShows_Call) RunAndReturn(run func(context.Context, string) ([]*models.Show, error)) *MockUseCase_GetShows_Call
- type MockUseCase_GetStation_Call
- func (_c *MockUseCase_GetStation_Call) Return(_a0 *models.Station, _a1 error) *MockUseCase_GetStation_Call
- func (_c *MockUseCase_GetStation_Call) Run(run func(_a0 context.Context, _a1 string)) *MockUseCase_GetStation_Call
- func (_c *MockUseCase_GetStation_Call) RunAndReturn(run func(context.Context, string) (*models.Station, error)) *MockUseCase_GetStation_Call
- type MockUseCase_GetStations_Call
- func (_c *MockUseCase_GetStations_Call) Return(_a0 []*models.Station, _a1 error) *MockUseCase_GetStations_Call
- func (_c *MockUseCase_GetStations_Call) Run(run func(_a0 context.Context)) *MockUseCase_GetStations_Call
- func (_c *MockUseCase_GetStations_Call) RunAndReturn(run func(context.Context) ([]*models.Station, error)) *MockUseCase_GetStations_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockUseCase ¶
MockUseCase is an autogenerated mock type for the UseCase type
func NewMockUseCase ¶
func NewMockUseCase(t interface { mock.TestingT Cleanup(func()) }) *MockUseCase
NewMockUseCase creates a new instance of MockUseCase. 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 (*MockUseCase) EXPECT ¶
func (_m *MockUseCase) EXPECT() *MockUseCase_Expecter
func (*MockUseCase) GetAllShowsFeed ¶ added in v0.1.12
GetAllShowsFeed provides a mock function with given fields: _a0, _a1
func (*MockUseCase) GetEpisodes ¶
func (_m *MockUseCase) GetEpisodes(_a0 context.Context, _a1 string, _a2 string) ([]*models.Episode, error)
GetEpisodes provides a mock function with given fields: _a0, _a1, _a2
func (*MockUseCase) GetEpisodesFeed ¶ added in v0.1.12
func (_m *MockUseCase) GetEpisodesFeed(_a0 context.Context, _a1 string, _a2 string) (*feeds.Feed, error)
GetEpisodesFeed provides a mock function with given fields: _a0, _a1, _a2
func (*MockUseCase) GetShow ¶ added in v0.1.12
GetShow provides a mock function with given fields: _a0, _a1, _a2
func (*MockUseCase) GetStation ¶ added in v0.1.12
GetStation provides a mock function with given fields: _a0, _a1
func (*MockUseCase) GetStations ¶
GetStations provides a mock function with given fields: _a0
type MockUseCase_Expecter ¶
type MockUseCase_Expecter struct {
// contains filtered or unexported fields
}
func (*MockUseCase_Expecter) GetAllShowsFeed ¶ added in v0.1.12
func (_e *MockUseCase_Expecter) GetAllShowsFeed(_a0 interface{}, _a1 interface{}) *MockUseCase_GetAllShowsFeed_Call
GetAllShowsFeed is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*MockUseCase_Expecter) GetEpisodes ¶
func (_e *MockUseCase_Expecter) GetEpisodes(_a0 interface{}, _a1 interface{}, _a2 interface{}) *MockUseCase_GetEpisodes_Call
GetEpisodes is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
- _a2 string
func (*MockUseCase_Expecter) GetEpisodesFeed ¶ added in v0.1.12
func (_e *MockUseCase_Expecter) GetEpisodesFeed(_a0 interface{}, _a1 interface{}, _a2 interface{}) *MockUseCase_GetEpisodesFeed_Call
GetEpisodesFeed is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
- _a2 string
func (*MockUseCase_Expecter) GetShow ¶ added in v0.1.12
func (_e *MockUseCase_Expecter) GetShow(_a0 interface{}, _a1 interface{}, _a2 interface{}) *MockUseCase_GetShow_Call
GetShow is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
- _a2 string
func (*MockUseCase_Expecter) GetShows ¶
func (_e *MockUseCase_Expecter) GetShows(_a0 interface{}, _a1 interface{}) *MockUseCase_GetShows_Call
GetShows is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*MockUseCase_Expecter) GetStation ¶ added in v0.1.12
func (_e *MockUseCase_Expecter) GetStation(_a0 interface{}, _a1 interface{}) *MockUseCase_GetStation_Call
GetStation is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*MockUseCase_Expecter) GetStations ¶
func (_e *MockUseCase_Expecter) GetStations(_a0 interface{}) *MockUseCase_GetStations_Call
GetStations is a helper method to define mock.On call
- _a0 context.Context
type MockUseCase_GetAllShowsFeed_Call ¶ added in v0.1.12
MockUseCase_GetAllShowsFeed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllShowsFeed'
func (*MockUseCase_GetAllShowsFeed_Call) Return ¶ added in v0.1.12
func (_c *MockUseCase_GetAllShowsFeed_Call) Return(_a0 *feeds.Feed, _a1 error) *MockUseCase_GetAllShowsFeed_Call
func (*MockUseCase_GetAllShowsFeed_Call) Run ¶ added in v0.1.12
func (_c *MockUseCase_GetAllShowsFeed_Call) Run(run func(_a0 context.Context, _a1 string)) *MockUseCase_GetAllShowsFeed_Call
func (*MockUseCase_GetAllShowsFeed_Call) RunAndReturn ¶ added in v0.1.12
func (_c *MockUseCase_GetAllShowsFeed_Call) RunAndReturn(run func(context.Context, string) (*feeds.Feed, error)) *MockUseCase_GetAllShowsFeed_Call
type MockUseCase_GetEpisodesFeed_Call ¶ added in v0.1.12
MockUseCase_GetEpisodesFeed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEpisodesFeed'
func (*MockUseCase_GetEpisodesFeed_Call) Return ¶ added in v0.1.12
func (_c *MockUseCase_GetEpisodesFeed_Call) Return(_a0 *feeds.Feed, _a1 error) *MockUseCase_GetEpisodesFeed_Call
func (*MockUseCase_GetEpisodesFeed_Call) Run ¶ added in v0.1.12
func (_c *MockUseCase_GetEpisodesFeed_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string)) *MockUseCase_GetEpisodesFeed_Call
func (*MockUseCase_GetEpisodesFeed_Call) RunAndReturn ¶ added in v0.1.12
func (_c *MockUseCase_GetEpisodesFeed_Call) RunAndReturn(run func(context.Context, string, string) (*feeds.Feed, error)) *MockUseCase_GetEpisodesFeed_Call
type MockUseCase_GetEpisodes_Call ¶
MockUseCase_GetEpisodes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEpisodes'
func (*MockUseCase_GetEpisodes_Call) Return ¶
func (_c *MockUseCase_GetEpisodes_Call) Return(_a0 []*models.Episode, _a1 error) *MockUseCase_GetEpisodes_Call
func (*MockUseCase_GetEpisodes_Call) Run ¶
func (_c *MockUseCase_GetEpisodes_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string)) *MockUseCase_GetEpisodes_Call
func (*MockUseCase_GetEpisodes_Call) RunAndReturn ¶
func (_c *MockUseCase_GetEpisodes_Call) RunAndReturn(run func(context.Context, string, string) ([]*models.Episode, error)) *MockUseCase_GetEpisodes_Call
type MockUseCase_GetShow_Call ¶ added in v0.1.12
MockUseCase_GetShow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetShow'
func (*MockUseCase_GetShow_Call) Return ¶ added in v0.1.12
func (_c *MockUseCase_GetShow_Call) Return(_a0 *models.Show, _a1 error) *MockUseCase_GetShow_Call
func (*MockUseCase_GetShow_Call) Run ¶ added in v0.1.12
func (_c *MockUseCase_GetShow_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string)) *MockUseCase_GetShow_Call
func (*MockUseCase_GetShow_Call) RunAndReturn ¶ added in v0.1.12
func (_c *MockUseCase_GetShow_Call) RunAndReturn(run func(context.Context, string, string) (*models.Show, error)) *MockUseCase_GetShow_Call
type MockUseCase_GetShows_Call ¶
MockUseCase_GetShows_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetShows'
func (*MockUseCase_GetShows_Call) Return ¶
func (_c *MockUseCase_GetShows_Call) Return(_a0 []*models.Show, _a1 error) *MockUseCase_GetShows_Call
func (*MockUseCase_GetShows_Call) Run ¶
func (_c *MockUseCase_GetShows_Call) Run(run func(_a0 context.Context, _a1 string)) *MockUseCase_GetShows_Call
func (*MockUseCase_GetShows_Call) RunAndReturn ¶
func (_c *MockUseCase_GetShows_Call) RunAndReturn(run func(context.Context, string) ([]*models.Show, error)) *MockUseCase_GetShows_Call
type MockUseCase_GetStation_Call ¶ added in v0.1.12
MockUseCase_GetStation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStation'
func (*MockUseCase_GetStation_Call) Return ¶ added in v0.1.12
func (_c *MockUseCase_GetStation_Call) Return(_a0 *models.Station, _a1 error) *MockUseCase_GetStation_Call
func (*MockUseCase_GetStation_Call) Run ¶ added in v0.1.12
func (_c *MockUseCase_GetStation_Call) Run(run func(_a0 context.Context, _a1 string)) *MockUseCase_GetStation_Call
func (*MockUseCase_GetStation_Call) RunAndReturn ¶ added in v0.1.12
func (_c *MockUseCase_GetStation_Call) RunAndReturn(run func(context.Context, string) (*models.Station, error)) *MockUseCase_GetStation_Call
type MockUseCase_GetStations_Call ¶
MockUseCase_GetStations_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStations'
func (*MockUseCase_GetStations_Call) Return ¶
func (_c *MockUseCase_GetStations_Call) Return(_a0 []*models.Station, _a1 error) *MockUseCase_GetStations_Call
func (*MockUseCase_GetStations_Call) Run ¶
func (_c *MockUseCase_GetStations_Call) Run(run func(_a0 context.Context)) *MockUseCase_GetStations_Call
func (*MockUseCase_GetStations_Call) RunAndReturn ¶
func (_c *MockUseCase_GetStations_Call) RunAndReturn(run func(context.Context) ([]*models.Station, error)) *MockUseCase_GetStations_Call