mocks

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 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) EXPECT

func (_m *Oracle) EXPECT() *Oracle_Expecter

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 Oracle_Expecter

type Oracle_Expecter struct {
	// contains filtered or unexported fields
}

func (*Oracle_Expecter) GetLastSyncTime

func (_e *Oracle_Expecter) GetLastSyncTime() *Oracle_GetLastSyncTime_Call

GetLastSyncTime is a helper method to define mock.On call

func (*Oracle_Expecter) GetMarketMap

func (_e *Oracle_Expecter) GetMarketMap() *Oracle_GetMarketMap_Call

GetMarketMap is a helper method to define mock.On call

func (*Oracle_Expecter) GetPrices

func (_e *Oracle_Expecter) GetPrices() *Oracle_GetPrices_Call

GetPrices is a helper method to define mock.On call

func (*Oracle_Expecter) IsRunning

func (_e *Oracle_Expecter) IsRunning() *Oracle_IsRunning_Call

IsRunning is a helper method to define mock.On call

func (*Oracle_Expecter) Start

func (_e *Oracle_Expecter) Start(ctx interface{}) *Oracle_Start_Call

Start is a helper method to define mock.On call

  • ctx context.Context

func (*Oracle_Expecter) Stop

func (_e *Oracle_Expecter) Stop() *Oracle_Stop_Call

Stop is a helper method to define mock.On call

type Oracle_GetLastSyncTime_Call

type Oracle_GetLastSyncTime_Call struct {
	*mock.Call
}

Oracle_GetLastSyncTime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLastSyncTime'

func (*Oracle_GetLastSyncTime_Call) Return

func (*Oracle_GetLastSyncTime_Call) Run

func (*Oracle_GetLastSyncTime_Call) RunAndReturn

func (_c *Oracle_GetLastSyncTime_Call) RunAndReturn(run func() time.Time) *Oracle_GetLastSyncTime_Call

type Oracle_GetMarketMap_Call

type Oracle_GetMarketMap_Call struct {
	*mock.Call
}

Oracle_GetMarketMap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMarketMap'

func (*Oracle_GetMarketMap_Call) Return

func (*Oracle_GetMarketMap_Call) Run

func (*Oracle_GetMarketMap_Call) RunAndReturn

func (_c *Oracle_GetMarketMap_Call) RunAndReturn(run func() types.MarketMap) *Oracle_GetMarketMap_Call

type Oracle_GetPrices_Call

type Oracle_GetPrices_Call struct {
	*mock.Call
}

Oracle_GetPrices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPrices'

func (*Oracle_GetPrices_Call) Return

func (*Oracle_GetPrices_Call) Run

func (_c *Oracle_GetPrices_Call) Run(run func()) *Oracle_GetPrices_Call

func (*Oracle_GetPrices_Call) RunAndReturn

func (_c *Oracle_GetPrices_Call) RunAndReturn(run func() map[string]*big.Float) *Oracle_GetPrices_Call

type Oracle_IsRunning_Call

type Oracle_IsRunning_Call struct {
	*mock.Call
}

Oracle_IsRunning_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsRunning'

func (*Oracle_IsRunning_Call) Return

func (*Oracle_IsRunning_Call) Run

func (_c *Oracle_IsRunning_Call) Run(run func()) *Oracle_IsRunning_Call

func (*Oracle_IsRunning_Call) RunAndReturn

func (_c *Oracle_IsRunning_Call) RunAndReturn(run func() bool) *Oracle_IsRunning_Call

type Oracle_Start_Call

type Oracle_Start_Call struct {
	*mock.Call
}

Oracle_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'

func (*Oracle_Start_Call) Return

func (_c *Oracle_Start_Call) Return(_a0 error) *Oracle_Start_Call

func (*Oracle_Start_Call) Run

func (_c *Oracle_Start_Call) Run(run func(ctx context.Context)) *Oracle_Start_Call

func (*Oracle_Start_Call) RunAndReturn

func (_c *Oracle_Start_Call) RunAndReturn(run func(context.Context) error) *Oracle_Start_Call

type Oracle_Stop_Call

type Oracle_Stop_Call struct {
	*mock.Call
}

Oracle_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'

func (*Oracle_Stop_Call) Return

func (_c *Oracle_Stop_Call) Return() *Oracle_Stop_Call

func (*Oracle_Stop_Call) Run

func (_c *Oracle_Stop_Call) Run(run func()) *Oracle_Stop_Call

func (*Oracle_Stop_Call) RunAndReturn

func (_c *Oracle_Stop_Call) RunAndReturn(run func()) *Oracle_Stop_Call

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) EXPECT

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

type PriceAggregator_AggregatePrices_Call

type PriceAggregator_AggregatePrices_Call struct {
	*mock.Call
}

PriceAggregator_AggregatePrices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AggregatePrices'

func (*PriceAggregator_AggregatePrices_Call) Return

func (*PriceAggregator_AggregatePrices_Call) Run

func (*PriceAggregator_AggregatePrices_Call) RunAndReturn

type PriceAggregator_Expecter

type PriceAggregator_Expecter struct {
	// contains filtered or unexported fields
}

func (*PriceAggregator_Expecter) AggregatePrices

AggregatePrices is a helper method to define mock.On call

func (*PriceAggregator_Expecter) GetPrices

GetPrices is a helper method to define mock.On call

func (*PriceAggregator_Expecter) Reset

Reset is a helper method to define mock.On call

func (*PriceAggregator_Expecter) SetProviderPrices

func (_e *PriceAggregator_Expecter) SetProviderPrices(provider interface{}, prices interface{}) *PriceAggregator_SetProviderPrices_Call

SetProviderPrices is a helper method to define mock.On call

  • provider string
  • prices map[string]*big.Float

func (*PriceAggregator_Expecter) UpdateMarketMap

func (_e *PriceAggregator_Expecter) UpdateMarketMap(_a0 interface{}) *PriceAggregator_UpdateMarketMap_Call

UpdateMarketMap is a helper method to define mock.On call

  • _a0 types.MarketMap

type PriceAggregator_GetPrices_Call

type PriceAggregator_GetPrices_Call struct {
	*mock.Call
}

PriceAggregator_GetPrices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPrices'

func (*PriceAggregator_GetPrices_Call) Return

func (*PriceAggregator_GetPrices_Call) Run

func (*PriceAggregator_GetPrices_Call) RunAndReturn

type PriceAggregator_Reset_Call

type PriceAggregator_Reset_Call struct {
	*mock.Call
}

PriceAggregator_Reset_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reset'

func (*PriceAggregator_Reset_Call) Return

func (*PriceAggregator_Reset_Call) Run

func (*PriceAggregator_Reset_Call) RunAndReturn

func (_c *PriceAggregator_Reset_Call) RunAndReturn(run func()) *PriceAggregator_Reset_Call

type PriceAggregator_SetProviderPrices_Call

type PriceAggregator_SetProviderPrices_Call struct {
	*mock.Call
}

PriceAggregator_SetProviderPrices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetProviderPrices'

func (*PriceAggregator_SetProviderPrices_Call) Return

func (*PriceAggregator_SetProviderPrices_Call) Run

func (*PriceAggregator_SetProviderPrices_Call) RunAndReturn

type PriceAggregator_UpdateMarketMap_Call

type PriceAggregator_UpdateMarketMap_Call struct {
	*mock.Call
}

PriceAggregator_UpdateMarketMap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateMarketMap'

func (*PriceAggregator_UpdateMarketMap_Call) Return

func (*PriceAggregator_UpdateMarketMap_Call) Run

func (*PriceAggregator_UpdateMarketMap_Call) RunAndReturn

Jump to

Keyboard shortcuts

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