mocks

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 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(market string, count int)

AddProviderCountForMarket provides a mock function with given fields: market, 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(ticker string)

AddTickerTick provides a mock function with given fields: ticker

func (*Metrics) SetSlinkyBuildInfo

func (_m *Metrics) SetSlinkyBuildInfo()

SetSlinkyBuildInfo 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

Jump to

Keyboard shortcuts

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