mocks

package
v0.0.0-...-7f1214a Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientMock

type ClientMock struct {
	mock.Mock
}

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

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

func (*ClientMock_GetExchangeRate_Call) RunAndReturn

Jump to

Keyboard shortcuts

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