Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockWeatherService ¶
MockWeatherService is an autogenerated mock type for the WeatherService type
func NewMockWeatherService ¶
func NewMockWeatherService(t mockConstructorTestingTNewMockWeatherService) *MockWeatherService
NewMockWeatherService creates a new instance of MockWeatherService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockWeatherService) CreateWeather ¶
func (_m *MockWeatherService) CreateWeather(ctx context.Context, url *types.Api) (*types.StoreData, error)
CreateWeather provides a mock function with given fields: ctx, url
func (*MockWeatherService) GetWeatherByCity ¶
func (_m *MockWeatherService) GetWeatherByCity(ctx context.Context, city string) (types.StoreData, error)
GetWeatherByCity provides a mock function with given fields: ctx, city
type WeatherService ¶
type WeatherService interface { CreateWeather(ctx context.Context, url *types.Api) (*types.StoreData, error) GetWeatherByCity(ctx context.Context, city string) (types.StoreData, error) }
func NewWeatherService ¶
func NewWeatherService(weatherRepository repository.WeatherRepository, timeout time.Duration) WeatherService
Click to show internal directories.
Click to hide internal directories.