mocks

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoingeckoPriceFetcher

type CoingeckoPriceFetcher struct {
	mock.Mock
}

CoingeckoPriceFetcher is an autogenerated mock type for the CoingeckoPriceFetcher type

func NewCoingeckoPriceFetcher

func NewCoingeckoPriceFetcher(t mockConstructorTestingTNewCoingeckoPriceFetcher) *CoingeckoPriceFetcher

NewCoingeckoPriceFetcher creates a new instance of CoingeckoPriceFetcher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CoingeckoPriceFetcher) GetPrice

func (_m *CoingeckoPriceFetcher) GetPrice(ctx context.Context, token string) (float64, error)

GetPrice provides a mock function with given fields: ctx, token

Jump to

Keyboard shortcuts

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