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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	mock.Mock
}

Metrics is an autogenerated mock type for the Metrics type

func NewMetrics

func NewMetrics(t interface {
	mock.TestingT
	Cleanup(func())
}) *Metrics

NewMetrics creates a new instance of Metrics. 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 (*Metrics) AddProviderCountForMarket

func (_m *Metrics) AddProviderCountForMarket(pairID string, count int)

AddProviderCountForMarket provides a mock function with given fields: pairID, count

func (*Metrics) AddProviderTick

func (_m *Metrics) AddProviderTick(providerName string, pairID string, success bool)

AddProviderTick provides a mock function with given fields: providerName, pairID, success

func (*Metrics) AddTick

func (_m *Metrics) AddTick()

AddTick provides a mock function with no fields

func (*Metrics) AddTickerTick

func (_m *Metrics) AddTickerTick(pairID string)

AddTickerTick provides a mock function with given fields: pairID

func (*Metrics) EXPECT

func (_m *Metrics) EXPECT() *Metrics_Expecter

func (*Metrics) GetMissingPrices

func (_m *Metrics) GetMissingPrices() []string

GetMissingPrices provides a mock function with no fields

func (*Metrics) MissingPrices

func (_m *Metrics) MissingPrices(pairIDs []string)

MissingPrices provides a mock function with given fields: pairIDs

func (*Metrics) SetConnectBuildInfo

func (_m *Metrics) SetConnectBuildInfo()

SetConnectBuildInfo provides a mock function with no fields

func (*Metrics) UpdateAggregatePrice

func (_m *Metrics) UpdateAggregatePrice(pairID string, decimals uint64, price float64)

UpdateAggregatePrice provides a mock function with given fields: pairID, decimals, price

func (*Metrics) UpdatePrice

func (_m *Metrics) UpdatePrice(name string, pairID string, decimals uint64, price float64)

UpdatePrice provides a mock function with given fields: name, pairID, decimals, price

type Metrics_AddProviderCountForMarket_Call

type Metrics_AddProviderCountForMarket_Call struct {
	*mock.Call
}

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

func (*Metrics_AddProviderCountForMarket_Call) Return

func (*Metrics_AddProviderCountForMarket_Call) Run

func (*Metrics_AddProviderCountForMarket_Call) RunAndReturn

type Metrics_AddProviderTick_Call

type Metrics_AddProviderTick_Call struct {
	*mock.Call
}

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

func (*Metrics_AddProviderTick_Call) Return

func (*Metrics_AddProviderTick_Call) Run

func (_c *Metrics_AddProviderTick_Call) Run(run func(providerName string, pairID string, success bool)) *Metrics_AddProviderTick_Call

func (*Metrics_AddProviderTick_Call) RunAndReturn

type Metrics_AddTick_Call

type Metrics_AddTick_Call struct {
	*mock.Call
}

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

func (*Metrics_AddTick_Call) Return

func (*Metrics_AddTick_Call) Run

func (_c *Metrics_AddTick_Call) Run(run func()) *Metrics_AddTick_Call

func (*Metrics_AddTick_Call) RunAndReturn

func (_c *Metrics_AddTick_Call) RunAndReturn(run func()) *Metrics_AddTick_Call

type Metrics_AddTickerTick_Call

type Metrics_AddTickerTick_Call struct {
	*mock.Call
}

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

func (*Metrics_AddTickerTick_Call) Return

func (*Metrics_AddTickerTick_Call) Run

func (*Metrics_AddTickerTick_Call) RunAndReturn

func (_c *Metrics_AddTickerTick_Call) RunAndReturn(run func(string)) *Metrics_AddTickerTick_Call

type Metrics_Expecter

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

func (*Metrics_Expecter) AddProviderCountForMarket

func (_e *Metrics_Expecter) AddProviderCountForMarket(pairID interface{}, count interface{}) *Metrics_AddProviderCountForMarket_Call

AddProviderCountForMarket is a helper method to define mock.On call

  • pairID string
  • count int

func (*Metrics_Expecter) AddProviderTick

func (_e *Metrics_Expecter) AddProviderTick(providerName interface{}, pairID interface{}, success interface{}) *Metrics_AddProviderTick_Call

AddProviderTick is a helper method to define mock.On call

  • providerName string
  • pairID string
  • success bool

func (*Metrics_Expecter) AddTick

func (_e *Metrics_Expecter) AddTick() *Metrics_AddTick_Call

AddTick is a helper method to define mock.On call

func (*Metrics_Expecter) AddTickerTick

func (_e *Metrics_Expecter) AddTickerTick(pairID interface{}) *Metrics_AddTickerTick_Call

AddTickerTick is a helper method to define mock.On call

  • pairID string

func (*Metrics_Expecter) GetMissingPrices

func (_e *Metrics_Expecter) GetMissingPrices() *Metrics_GetMissingPrices_Call

GetMissingPrices is a helper method to define mock.On call

func (*Metrics_Expecter) MissingPrices

func (_e *Metrics_Expecter) MissingPrices(pairIDs interface{}) *Metrics_MissingPrices_Call

MissingPrices is a helper method to define mock.On call

  • pairIDs []string

func (*Metrics_Expecter) SetConnectBuildInfo

func (_e *Metrics_Expecter) SetConnectBuildInfo() *Metrics_SetConnectBuildInfo_Call

SetConnectBuildInfo is a helper method to define mock.On call

func (*Metrics_Expecter) UpdateAggregatePrice

func (_e *Metrics_Expecter) UpdateAggregatePrice(pairID interface{}, decimals interface{}, price interface{}) *Metrics_UpdateAggregatePrice_Call

UpdateAggregatePrice is a helper method to define mock.On call

  • pairID string
  • decimals uint64
  • price float64

func (*Metrics_Expecter) UpdatePrice

func (_e *Metrics_Expecter) UpdatePrice(name interface{}, pairID interface{}, decimals interface{}, price interface{}) *Metrics_UpdatePrice_Call

UpdatePrice is a helper method to define mock.On call

  • name string
  • pairID string
  • decimals uint64
  • price float64

type Metrics_GetMissingPrices_Call

type Metrics_GetMissingPrices_Call struct {
	*mock.Call
}

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

func (*Metrics_GetMissingPrices_Call) Return

func (*Metrics_GetMissingPrices_Call) Run

func (*Metrics_GetMissingPrices_Call) RunAndReturn

func (_c *Metrics_GetMissingPrices_Call) RunAndReturn(run func() []string) *Metrics_GetMissingPrices_Call

type Metrics_MissingPrices_Call

type Metrics_MissingPrices_Call struct {
	*mock.Call
}

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

func (*Metrics_MissingPrices_Call) Return

func (*Metrics_MissingPrices_Call) Run

func (_c *Metrics_MissingPrices_Call) Run(run func(pairIDs []string)) *Metrics_MissingPrices_Call

func (*Metrics_MissingPrices_Call) RunAndReturn

func (_c *Metrics_MissingPrices_Call) RunAndReturn(run func([]string)) *Metrics_MissingPrices_Call

type Metrics_SetConnectBuildInfo_Call

type Metrics_SetConnectBuildInfo_Call struct {
	*mock.Call
}

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

func (*Metrics_SetConnectBuildInfo_Call) Return

func (*Metrics_SetConnectBuildInfo_Call) Run

func (*Metrics_SetConnectBuildInfo_Call) RunAndReturn

type Metrics_UpdateAggregatePrice_Call

type Metrics_UpdateAggregatePrice_Call struct {
	*mock.Call
}

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

func (*Metrics_UpdateAggregatePrice_Call) Return

func (*Metrics_UpdateAggregatePrice_Call) Run

func (_c *Metrics_UpdateAggregatePrice_Call) Run(run func(pairID string, decimals uint64, price float64)) *Metrics_UpdateAggregatePrice_Call

func (*Metrics_UpdateAggregatePrice_Call) RunAndReturn

type Metrics_UpdatePrice_Call

type Metrics_UpdatePrice_Call struct {
	*mock.Call
}

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

func (*Metrics_UpdatePrice_Call) Return

func (*Metrics_UpdatePrice_Call) Run

func (_c *Metrics_UpdatePrice_Call) Run(run func(name string, pairID string, decimals uint64, price float64)) *Metrics_UpdatePrice_Call

func (*Metrics_UpdatePrice_Call) RunAndReturn

type NodeClient

type NodeClient struct {
	mock.Mock
}

NodeClient is an autogenerated mock type for the NodeClient type

func NewNodeClient

func NewNodeClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *NodeClient

NewNodeClient creates a new instance of NodeClient. 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 (*NodeClient) DeriveNodeIdentifier

func (_m *NodeClient) DeriveNodeIdentifier() (string, error)

DeriveNodeIdentifier provides a mock function with no fields

func (*NodeClient) EXPECT

func (_m *NodeClient) EXPECT() *NodeClient_Expecter

type NodeClient_DeriveNodeIdentifier_Call

type NodeClient_DeriveNodeIdentifier_Call struct {
	*mock.Call
}

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

func (*NodeClient_DeriveNodeIdentifier_Call) Return

func (*NodeClient_DeriveNodeIdentifier_Call) Run

func (*NodeClient_DeriveNodeIdentifier_Call) RunAndReturn

type NodeClient_Expecter

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

func (*NodeClient_Expecter) DeriveNodeIdentifier

func (_e *NodeClient_Expecter) DeriveNodeIdentifier() *NodeClient_DeriveNodeIdentifier_Call

DeriveNodeIdentifier is a helper method to define mock.On call

Jump to

Keyboard shortcuts

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