mocks

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 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 MockUseCase

type MockUseCase struct {
	mock.Mock
}

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.16

func (_m *MockUseCase) GetAllShowsFeed(_a0 context.Context, _a1 string) (*feeds.Feed, error)

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.16

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.16

func (_m *MockUseCase) GetShow(_a0 context.Context, _a1 string, _a2 string) (*models.Show, error)

GetShow provides a mock function with given fields: _a0, _a1, _a2

func (*MockUseCase) GetShows

func (_m *MockUseCase) GetShows(_a0 context.Context, _a1 string) ([]*models.Show, error)

GetShows provides a mock function with given fields: _a0, _a1

func (*MockUseCase) GetStation added in v0.1.16

func (_m *MockUseCase) GetStation(_a0 context.Context, _a1 string) (*models.Station, error)

GetStation provides a mock function with given fields: _a0, _a1

func (*MockUseCase) GetStations

func (_m *MockUseCase) GetStations(_a0 context.Context) ([]*models.Station, error)

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.16

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.16

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.16

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.16

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.16

type MockUseCase_GetAllShowsFeed_Call struct {
	*mock.Call
}

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.16

func (*MockUseCase_GetAllShowsFeed_Call) Run added in v0.1.16

func (*MockUseCase_GetAllShowsFeed_Call) RunAndReturn added in v0.1.16

type MockUseCase_GetEpisodesFeed_Call added in v0.1.16

type MockUseCase_GetEpisodesFeed_Call struct {
	*mock.Call
}

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.16

func (*MockUseCase_GetEpisodesFeed_Call) Run added in v0.1.16

func (*MockUseCase_GetEpisodesFeed_Call) RunAndReturn added in v0.1.16

type MockUseCase_GetEpisodes_Call

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

func (*MockUseCase_GetEpisodes_Call) RunAndReturn

type MockUseCase_GetShow_Call added in v0.1.16

type MockUseCase_GetShow_Call struct {
	*mock.Call
}

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.16

func (*MockUseCase_GetShow_Call) Run added in v0.1.16

func (*MockUseCase_GetShow_Call) RunAndReturn added in v0.1.16

type MockUseCase_GetShows_Call

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

func (*MockUseCase_GetShows_Call) RunAndReturn

type MockUseCase_GetStation_Call added in v0.1.16

type MockUseCase_GetStation_Call struct {
	*mock.Call
}

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.16

func (*MockUseCase_GetStation_Call) Run added in v0.1.16

func (*MockUseCase_GetStation_Call) RunAndReturn added in v0.1.16

type MockUseCase_GetStations_Call

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

func (*MockUseCase_GetStations_Call) RunAndReturn

Jump to

Keyboard shortcuts

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