Documentation ¶
Index ¶
- type Service
- func (_m *Service) EXPECT() *Service_Expecter
- func (_m *Service) HasCurrency(ctx context.Context, _a1 string) (bool, error)
- func (_m *Service) HasCurrencyAtDate(ctx context.Context, _a1 string, date time.Time) (bool, error)
- func (_m *Service) ToCurrency(ctx context.Context, toCurrency string, value float64, fromCurrency string) (float64, error)
- func (_m *Service) ToCurrencyAtDate(ctx context.Context, toCurrency string, value float64, fromCurrency string, ...) (float64, error)
- func (_m *Service) ToEur(ctx context.Context, value float64, fromCurrency string) (float64, error)
- func (_m *Service) ToEurAtDate(ctx context.Context, value float64, fromCurrency string, date time.Time) (float64, error)
- func (_m *Service) ToUsd(ctx context.Context, value float64, fromCurrency string) (float64, error)
- func (_m *Service) ToUsdAtDate(ctx context.Context, value float64, fromCurrency string, date time.Time) (float64, error)
- type Service_Expecter
- func (_e *Service_Expecter) HasCurrency(ctx interface{}, _a1 interface{}) *Service_HasCurrency_Call
- func (_e *Service_Expecter) HasCurrencyAtDate(ctx interface{}, _a1 interface{}, date interface{}) *Service_HasCurrencyAtDate_Call
- func (_e *Service_Expecter) ToCurrency(ctx interface{}, toCurrency interface{}, value interface{}, ...) *Service_ToCurrency_Call
- func (_e *Service_Expecter) ToCurrencyAtDate(ctx interface{}, toCurrency interface{}, value interface{}, ...) *Service_ToCurrencyAtDate_Call
- func (_e *Service_Expecter) ToEur(ctx interface{}, value interface{}, fromCurrency interface{}) *Service_ToEur_Call
- func (_e *Service_Expecter) ToEurAtDate(ctx interface{}, value interface{}, fromCurrency interface{}, date interface{}) *Service_ToEurAtDate_Call
- func (_e *Service_Expecter) ToUsd(ctx interface{}, value interface{}, fromCurrency interface{}) *Service_ToUsd_Call
- func (_e *Service_Expecter) ToUsdAtDate(ctx interface{}, value interface{}, fromCurrency interface{}, date interface{}) *Service_ToUsdAtDate_Call
- type Service_HasCurrencyAtDate_Call
- func (_c *Service_HasCurrencyAtDate_Call) Return(_a0 bool, _a1 error) *Service_HasCurrencyAtDate_Call
- func (_c *Service_HasCurrencyAtDate_Call) Run(run func(ctx context.Context, _a1 string, date time.Time)) *Service_HasCurrencyAtDate_Call
- func (_c *Service_HasCurrencyAtDate_Call) RunAndReturn(run func(context.Context, string, time.Time) (bool, error)) *Service_HasCurrencyAtDate_Call
- type Service_HasCurrency_Call
- func (_c *Service_HasCurrency_Call) Return(_a0 bool, _a1 error) *Service_HasCurrency_Call
- func (_c *Service_HasCurrency_Call) Run(run func(ctx context.Context, _a1 string)) *Service_HasCurrency_Call
- func (_c *Service_HasCurrency_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *Service_HasCurrency_Call
- type Service_ToCurrencyAtDate_Call
- func (_c *Service_ToCurrencyAtDate_Call) Return(_a0 float64, _a1 error) *Service_ToCurrencyAtDate_Call
- func (_c *Service_ToCurrencyAtDate_Call) Run(...) *Service_ToCurrencyAtDate_Call
- func (_c *Service_ToCurrencyAtDate_Call) RunAndReturn(run func(context.Context, string, float64, string, time.Time) (float64, error)) *Service_ToCurrencyAtDate_Call
- type Service_ToCurrency_Call
- func (_c *Service_ToCurrency_Call) Return(_a0 float64, _a1 error) *Service_ToCurrency_Call
- func (_c *Service_ToCurrency_Call) Run(...) *Service_ToCurrency_Call
- func (_c *Service_ToCurrency_Call) RunAndReturn(run func(context.Context, string, float64, string) (float64, error)) *Service_ToCurrency_Call
- type Service_ToEurAtDate_Call
- func (_c *Service_ToEurAtDate_Call) Return(_a0 float64, _a1 error) *Service_ToEurAtDate_Call
- func (_c *Service_ToEurAtDate_Call) Run(...) *Service_ToEurAtDate_Call
- func (_c *Service_ToEurAtDate_Call) RunAndReturn(run func(context.Context, float64, string, time.Time) (float64, error)) *Service_ToEurAtDate_Call
- type Service_ToEur_Call
- func (_c *Service_ToEur_Call) Return(_a0 float64, _a1 error) *Service_ToEur_Call
- func (_c *Service_ToEur_Call) Run(run func(ctx context.Context, value float64, fromCurrency string)) *Service_ToEur_Call
- func (_c *Service_ToEur_Call) RunAndReturn(run func(context.Context, float64, string) (float64, error)) *Service_ToEur_Call
- type Service_ToUsdAtDate_Call
- func (_c *Service_ToUsdAtDate_Call) Return(_a0 float64, _a1 error) *Service_ToUsdAtDate_Call
- func (_c *Service_ToUsdAtDate_Call) Run(...) *Service_ToUsdAtDate_Call
- func (_c *Service_ToUsdAtDate_Call) RunAndReturn(run func(context.Context, float64, string, time.Time) (float64, error)) *Service_ToUsdAtDate_Call
- type Service_ToUsd_Call
- func (_c *Service_ToUsd_Call) Return(_a0 float64, _a1 error) *Service_ToUsd_Call
- func (_c *Service_ToUsd_Call) Run(run func(ctx context.Context, value float64, fromCurrency string)) *Service_ToUsd_Call
- func (_c *Service_ToUsd_Call) RunAndReturn(run func(context.Context, float64, string) (float64, error)) *Service_ToUsd_Call
- type UpdaterService
- type UpdaterService_EnsureHistoricalExchangeRates_Call
- func (_c *UpdaterService_EnsureHistoricalExchangeRates_Call) Return(_a0 error) *UpdaterService_EnsureHistoricalExchangeRates_Call
- func (_c *UpdaterService_EnsureHistoricalExchangeRates_Call) Run(run func(ctx context.Context)) *UpdaterService_EnsureHistoricalExchangeRates_Call
- func (_c *UpdaterService_EnsureHistoricalExchangeRates_Call) RunAndReturn(run func(context.Context) error) *UpdaterService_EnsureHistoricalExchangeRates_Call
- type UpdaterService_EnsureRecentExchangeRates_Call
- func (_c *UpdaterService_EnsureRecentExchangeRates_Call) Return(_a0 error) *UpdaterService_EnsureRecentExchangeRates_Call
- func (_c *UpdaterService_EnsureRecentExchangeRates_Call) Run(run func(ctx context.Context)) *UpdaterService_EnsureRecentExchangeRates_Call
- func (_c *UpdaterService_EnsureRecentExchangeRates_Call) RunAndReturn(run func(context.Context) error) *UpdaterService_EnsureRecentExchangeRates_Call
- type UpdaterService_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
Service is an autogenerated mock type for the Service type
func NewService ¶
func NewService(t mockConstructorTestingTNewService) *Service
NewService creates a new instance of Service. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Service) EXPECT ¶
func (_m *Service) EXPECT() *Service_Expecter
func (*Service) HasCurrency ¶
HasCurrency provides a mock function with given fields: ctx, _a1
func (*Service) HasCurrencyAtDate ¶
HasCurrencyAtDate provides a mock function with given fields: ctx, _a1, date
func (*Service) ToCurrency ¶
func (_m *Service) ToCurrency(ctx context.Context, toCurrency string, value float64, fromCurrency string) (float64, error)
ToCurrency provides a mock function with given fields: ctx, toCurrency, value, fromCurrency
func (*Service) ToCurrencyAtDate ¶
func (_m *Service) ToCurrencyAtDate(ctx context.Context, toCurrency string, value float64, fromCurrency string, date time.Time) (float64, error)
ToCurrencyAtDate provides a mock function with given fields: ctx, toCurrency, value, fromCurrency, date
func (*Service) ToEurAtDate ¶
func (_m *Service) ToEurAtDate(ctx context.Context, value float64, fromCurrency string, date time.Time) (float64, error)
ToEurAtDate provides a mock function with given fields: ctx, value, fromCurrency, date
type Service_Expecter ¶
type Service_Expecter struct {
// contains filtered or unexported fields
}
func (*Service_Expecter) HasCurrency ¶
func (_e *Service_Expecter) HasCurrency(ctx interface{}, _a1 interface{}) *Service_HasCurrency_Call
HasCurrency is a helper method to define mock.On call
- ctx context.Context
- _a1 string
func (*Service_Expecter) HasCurrencyAtDate ¶
func (_e *Service_Expecter) HasCurrencyAtDate(ctx interface{}, _a1 interface{}, date interface{}) *Service_HasCurrencyAtDate_Call
HasCurrencyAtDate is a helper method to define mock.On call
- ctx context.Context
- _a1 string
- date time.Time
func (*Service_Expecter) ToCurrency ¶
func (_e *Service_Expecter) ToCurrency(ctx interface{}, toCurrency interface{}, value interface{}, fromCurrency interface{}) *Service_ToCurrency_Call
ToCurrency is a helper method to define mock.On call
- ctx context.Context
- toCurrency string
- value float64
- fromCurrency string
func (*Service_Expecter) ToCurrencyAtDate ¶
func (_e *Service_Expecter) ToCurrencyAtDate(ctx interface{}, toCurrency interface{}, value interface{}, fromCurrency interface{}, date interface{}) *Service_ToCurrencyAtDate_Call
ToCurrencyAtDate is a helper method to define mock.On call
- ctx context.Context
- toCurrency string
- value float64
- fromCurrency string
- date time.Time
func (*Service_Expecter) ToEur ¶
func (_e *Service_Expecter) ToEur(ctx interface{}, value interface{}, fromCurrency interface{}) *Service_ToEur_Call
ToEur is a helper method to define mock.On call
- ctx context.Context
- value float64
- fromCurrency string
func (*Service_Expecter) ToEurAtDate ¶
func (_e *Service_Expecter) ToEurAtDate(ctx interface{}, value interface{}, fromCurrency interface{}, date interface{}) *Service_ToEurAtDate_Call
ToEurAtDate is a helper method to define mock.On call
- ctx context.Context
- value float64
- fromCurrency string
- date time.Time
func (*Service_Expecter) ToUsd ¶
func (_e *Service_Expecter) ToUsd(ctx interface{}, value interface{}, fromCurrency interface{}) *Service_ToUsd_Call
ToUsd is a helper method to define mock.On call
- ctx context.Context
- value float64
- fromCurrency string
func (*Service_Expecter) ToUsdAtDate ¶
func (_e *Service_Expecter) ToUsdAtDate(ctx interface{}, value interface{}, fromCurrency interface{}, date interface{}) *Service_ToUsdAtDate_Call
ToUsdAtDate is a helper method to define mock.On call
- ctx context.Context
- value float64
- fromCurrency string
- date time.Time
type Service_HasCurrencyAtDate_Call ¶
Service_HasCurrencyAtDate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasCurrencyAtDate'
func (*Service_HasCurrencyAtDate_Call) Return ¶
func (_c *Service_HasCurrencyAtDate_Call) Return(_a0 bool, _a1 error) *Service_HasCurrencyAtDate_Call
func (*Service_HasCurrencyAtDate_Call) Run ¶
func (_c *Service_HasCurrencyAtDate_Call) Run(run func(ctx context.Context, _a1 string, date time.Time)) *Service_HasCurrencyAtDate_Call
func (*Service_HasCurrencyAtDate_Call) RunAndReturn ¶
func (_c *Service_HasCurrencyAtDate_Call) RunAndReturn(run func(context.Context, string, time.Time) (bool, error)) *Service_HasCurrencyAtDate_Call
type Service_HasCurrency_Call ¶
Service_HasCurrency_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasCurrency'
func (*Service_HasCurrency_Call) Return ¶
func (_c *Service_HasCurrency_Call) Return(_a0 bool, _a1 error) *Service_HasCurrency_Call
func (*Service_HasCurrency_Call) Run ¶
func (_c *Service_HasCurrency_Call) Run(run func(ctx context.Context, _a1 string)) *Service_HasCurrency_Call
func (*Service_HasCurrency_Call) RunAndReturn ¶
func (_c *Service_HasCurrency_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *Service_HasCurrency_Call
type Service_ToCurrencyAtDate_Call ¶
Service_ToCurrencyAtDate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ToCurrencyAtDate'
func (*Service_ToCurrencyAtDate_Call) Return ¶
func (_c *Service_ToCurrencyAtDate_Call) Return(_a0 float64, _a1 error) *Service_ToCurrencyAtDate_Call
func (*Service_ToCurrencyAtDate_Call) Run ¶
func (_c *Service_ToCurrencyAtDate_Call) Run(run func(ctx context.Context, toCurrency string, value float64, fromCurrency string, date time.Time)) *Service_ToCurrencyAtDate_Call
func (*Service_ToCurrencyAtDate_Call) RunAndReturn ¶
type Service_ToCurrency_Call ¶
Service_ToCurrency_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ToCurrency'
func (*Service_ToCurrency_Call) Return ¶
func (_c *Service_ToCurrency_Call) Return(_a0 float64, _a1 error) *Service_ToCurrency_Call
func (*Service_ToCurrency_Call) Run ¶
func (_c *Service_ToCurrency_Call) Run(run func(ctx context.Context, toCurrency string, value float64, fromCurrency string)) *Service_ToCurrency_Call
func (*Service_ToCurrency_Call) RunAndReturn ¶
func (_c *Service_ToCurrency_Call) RunAndReturn(run func(context.Context, string, float64, string) (float64, error)) *Service_ToCurrency_Call
type Service_ToEurAtDate_Call ¶
Service_ToEurAtDate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ToEurAtDate'
func (*Service_ToEurAtDate_Call) Return ¶
func (_c *Service_ToEurAtDate_Call) Return(_a0 float64, _a1 error) *Service_ToEurAtDate_Call
func (*Service_ToEurAtDate_Call) Run ¶
func (_c *Service_ToEurAtDate_Call) Run(run func(ctx context.Context, value float64, fromCurrency string, date time.Time)) *Service_ToEurAtDate_Call
func (*Service_ToEurAtDate_Call) RunAndReturn ¶
func (_c *Service_ToEurAtDate_Call) RunAndReturn(run func(context.Context, float64, string, time.Time) (float64, error)) *Service_ToEurAtDate_Call
type Service_ToEur_Call ¶
Service_ToEur_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ToEur'
func (*Service_ToEur_Call) Return ¶
func (_c *Service_ToEur_Call) Return(_a0 float64, _a1 error) *Service_ToEur_Call
func (*Service_ToEur_Call) Run ¶
func (_c *Service_ToEur_Call) Run(run func(ctx context.Context, value float64, fromCurrency string)) *Service_ToEur_Call
func (*Service_ToEur_Call) RunAndReturn ¶
func (_c *Service_ToEur_Call) RunAndReturn(run func(context.Context, float64, string) (float64, error)) *Service_ToEur_Call
type Service_ToUsdAtDate_Call ¶
Service_ToUsdAtDate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ToUsdAtDate'
func (*Service_ToUsdAtDate_Call) Return ¶
func (_c *Service_ToUsdAtDate_Call) Return(_a0 float64, _a1 error) *Service_ToUsdAtDate_Call
func (*Service_ToUsdAtDate_Call) Run ¶
func (_c *Service_ToUsdAtDate_Call) Run(run func(ctx context.Context, value float64, fromCurrency string, date time.Time)) *Service_ToUsdAtDate_Call
func (*Service_ToUsdAtDate_Call) RunAndReturn ¶
func (_c *Service_ToUsdAtDate_Call) RunAndReturn(run func(context.Context, float64, string, time.Time) (float64, error)) *Service_ToUsdAtDate_Call
type Service_ToUsd_Call ¶
Service_ToUsd_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ToUsd'
func (*Service_ToUsd_Call) Return ¶
func (_c *Service_ToUsd_Call) Return(_a0 float64, _a1 error) *Service_ToUsd_Call
func (*Service_ToUsd_Call) Run ¶
func (_c *Service_ToUsd_Call) Run(run func(ctx context.Context, value float64, fromCurrency string)) *Service_ToUsd_Call
func (*Service_ToUsd_Call) RunAndReturn ¶
func (_c *Service_ToUsd_Call) RunAndReturn(run func(context.Context, float64, string) (float64, error)) *Service_ToUsd_Call
type UpdaterService ¶
UpdaterService is an autogenerated mock type for the UpdaterService type
func NewUpdaterService ¶
func NewUpdaterService(t mockConstructorTestingTNewUpdaterService) *UpdaterService
NewUpdaterService creates a new instance of UpdaterService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*UpdaterService) EXPECT ¶
func (_m *UpdaterService) EXPECT() *UpdaterService_Expecter
func (*UpdaterService) EnsureHistoricalExchangeRates ¶
func (_m *UpdaterService) EnsureHistoricalExchangeRates(ctx context.Context) error
EnsureHistoricalExchangeRates provides a mock function with given fields: ctx
func (*UpdaterService) EnsureRecentExchangeRates ¶
func (_m *UpdaterService) EnsureRecentExchangeRates(ctx context.Context) error
EnsureRecentExchangeRates provides a mock function with given fields: ctx
type UpdaterService_EnsureHistoricalExchangeRates_Call ¶
UpdaterService_EnsureHistoricalExchangeRates_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnsureHistoricalExchangeRates'
func (*UpdaterService_EnsureHistoricalExchangeRates_Call) Return ¶
func (_c *UpdaterService_EnsureHistoricalExchangeRates_Call) Return(_a0 error) *UpdaterService_EnsureHistoricalExchangeRates_Call
func (*UpdaterService_EnsureHistoricalExchangeRates_Call) Run ¶
func (_c *UpdaterService_EnsureHistoricalExchangeRates_Call) Run(run func(ctx context.Context)) *UpdaterService_EnsureHistoricalExchangeRates_Call
func (*UpdaterService_EnsureHistoricalExchangeRates_Call) RunAndReturn ¶
func (_c *UpdaterService_EnsureHistoricalExchangeRates_Call) RunAndReturn(run func(context.Context) error) *UpdaterService_EnsureHistoricalExchangeRates_Call
type UpdaterService_EnsureRecentExchangeRates_Call ¶
UpdaterService_EnsureRecentExchangeRates_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnsureRecentExchangeRates'
func (*UpdaterService_EnsureRecentExchangeRates_Call) Return ¶
func (_c *UpdaterService_EnsureRecentExchangeRates_Call) Return(_a0 error) *UpdaterService_EnsureRecentExchangeRates_Call
func (*UpdaterService_EnsureRecentExchangeRates_Call) Run ¶
func (_c *UpdaterService_EnsureRecentExchangeRates_Call) Run(run func(ctx context.Context)) *UpdaterService_EnsureRecentExchangeRates_Call
func (*UpdaterService_EnsureRecentExchangeRates_Call) RunAndReturn ¶
func (_c *UpdaterService_EnsureRecentExchangeRates_Call) RunAndReturn(run func(context.Context) error) *UpdaterService_EnsureRecentExchangeRates_Call
type UpdaterService_Expecter ¶
type UpdaterService_Expecter struct {
// contains filtered or unexported fields
}
func (*UpdaterService_Expecter) EnsureHistoricalExchangeRates ¶
func (_e *UpdaterService_Expecter) EnsureHistoricalExchangeRates(ctx interface{}) *UpdaterService_EnsureHistoricalExchangeRates_Call
EnsureHistoricalExchangeRates is a helper method to define mock.On call
- ctx context.Context
func (*UpdaterService_Expecter) EnsureRecentExchangeRates ¶
func (_e *UpdaterService_Expecter) EnsureRecentExchangeRates(ctx interface{}) *UpdaterService_EnsureRecentExchangeRates_Call
EnsureRecentExchangeRates is a helper method to define mock.On call
- ctx context.Context