Documentation
¶
Index ¶
- type ClientMock
- type ClientMock_Expecter
- type ClientMock_GetExchangeRate_Call
- func (_c *ClientMock_GetExchangeRate_Call) Return(_a0 float64, _a1 error) *ClientMock_GetExchangeRate_Call
- func (_c *ClientMock_GetExchangeRate_Call) Run(run func(ctx context.Context, currencyID string, date time.Time)) *ClientMock_GetExchangeRate_Call
- func (_c *ClientMock_GetExchangeRate_Call) RunAndReturn(run func(context.Context, string, time.Time) (float64, error)) *ClientMock_GetExchangeRate_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientMock ¶
ClientMock is an autogenerated mock type for the ClientMock type
func NewClientMock ¶
func NewClientMock(t interface { mock.TestingT Cleanup(func()) }) *ClientMock
NewClientMock creates a new instance of ClientMock. 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 (*ClientMock) EXPECT ¶
func (_m *ClientMock) EXPECT() *ClientMock_Expecter
func (*ClientMock) GetExchangeRate ¶
func (_m *ClientMock) GetExchangeRate(ctx context.Context, currencyID string, date time.Time) (float64, error)
GetExchangeRate provides a mock function with given fields: ctx, currencyID, date
type ClientMock_Expecter ¶
type ClientMock_Expecter struct {
// contains filtered or unexported fields
}
func (*ClientMock_Expecter) GetExchangeRate ¶
func (_e *ClientMock_Expecter) GetExchangeRate(ctx interface{}, currencyID interface{}, date interface{}) *ClientMock_GetExchangeRate_Call
GetExchangeRate is a helper method to define mock.On call
- ctx context.Context
- currencyID string
- date time.Time
type ClientMock_GetExchangeRate_Call ¶
ClientMock_GetExchangeRate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetExchangeRate'
func (*ClientMock_GetExchangeRate_Call) Return ¶
func (_c *ClientMock_GetExchangeRate_Call) Return(_a0 float64, _a1 error) *ClientMock_GetExchangeRate_Call
func (*ClientMock_GetExchangeRate_Call) Run ¶
func (_c *ClientMock_GetExchangeRate_Call) Run(run func(ctx context.Context, currencyID string, date time.Time)) *ClientMock_GetExchangeRate_Call
func (*ClientMock_GetExchangeRate_Call) RunAndReturn ¶
func (_c *ClientMock_GetExchangeRate_Call) RunAndReturn(run func(context.Context, string, time.Time) (float64, error)) *ClientMock_GetExchangeRate_Call
Click to show internal directories.
Click to hide internal directories.