mocks

package
v0.1.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 3 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 mockConstructorTestingTNewMetrics) *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.

func (*Metrics) AddProviderResponse

func (_m *Metrics) AddProviderResponse(providerName string, status metrics.Status)

AddProviderResponse provides a mock function with given fields: providerName, status

func (*Metrics) AddTick

func (_m *Metrics) AddTick()

AddTick provides a mock function with given fields:

func (*Metrics) ObserveProviderResponseLatency

func (_m *Metrics) ObserveProviderResponseLatency(providerName string, duration time.Duration)

ObserveProviderResponseLatency provides a mock function with given fields: providerName, duration

Jump to

Keyboard shortcuts

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