mocks

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Oracle

type Oracle struct {
	mock.Mock
}

Oracle is an autogenerated mock type for the Oracle type

func NewOracle

func NewOracle(t interface {
	mock.TestingT
	Cleanup(func())
}) *Oracle

NewOracle creates a new instance of Oracle. 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 (*Oracle) GetLastSyncTime

func (_m *Oracle) GetLastSyncTime() time.Time

GetLastSyncTime provides a mock function with no fields

func (*Oracle) GetMarketMap

func (_m *Oracle) GetMarketMap() types.MarketMap

GetMarketMap provides a mock function with no fields

func (*Oracle) GetPrices

func (_m *Oracle) GetPrices() map[string]*big.Float

GetPrices provides a mock function with no fields

func (*Oracle) IsRunning

func (_m *Oracle) IsRunning() bool

IsRunning provides a mock function with no fields

func (*Oracle) Start

func (_m *Oracle) Start(ctx context.Context) error

Start provides a mock function with given fields: ctx

func (*Oracle) Stop

func (_m *Oracle) Stop()

Stop provides a mock function with no fields

type PriceAggregator

type PriceAggregator struct {
	mock.Mock
}

PriceAggregator is an autogenerated mock type for the PriceAggregator type

func NewPriceAggregator

func NewPriceAggregator(t interface {
	mock.TestingT
	Cleanup(func())
}) *PriceAggregator

NewPriceAggregator creates a new instance of PriceAggregator. 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 (*PriceAggregator) AggregatePrices

func (_m *PriceAggregator) AggregatePrices()

AggregatePrices provides a mock function with no fields

func (*PriceAggregator) GetPrices

func (_m *PriceAggregator) GetPrices() map[string]*big.Float

GetPrices provides a mock function with no fields

func (*PriceAggregator) Reset

func (_m *PriceAggregator) Reset()

Reset provides a mock function with no fields

func (*PriceAggregator) SetProviderPrices

func (_m *PriceAggregator) SetProviderPrices(provider string, prices map[string]*big.Float)

SetProviderPrices provides a mock function with given fields: provider, prices

func (*PriceAggregator) UpdateMarketMap

func (_m *PriceAggregator) UpdateMarketMap(_a0 types.MarketMap)

UpdateMarketMap provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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