mocks

package
v1.2.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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProviderMetrics

type ProviderMetrics struct {
	mock.Mock
}

ProviderMetrics is an autogenerated mock type for the ProviderMetrics type

func NewProviderMetrics

func NewProviderMetrics(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProviderMetrics

NewProviderMetrics creates a new instance of ProviderMetrics. 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 (*ProviderMetrics) AddProviderResponse

func (_m *ProviderMetrics) AddProviderResponse(providerName string, status metrics.Status, ec types.ErrorCode, providerType types.ProviderType)

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

func (*ProviderMetrics) AddProviderResponseByID

func (_m *ProviderMetrics) AddProviderResponseByID(providerName string, id string, status metrics.Status, ec types.ErrorCode, providerType types.ProviderType)

AddProviderResponseByID provides a mock function with given fields: providerName, id, status, ec, providerType

func (*ProviderMetrics) LastUpdated

func (_m *ProviderMetrics) LastUpdated(providerName string, id string, providerType types.ProviderType)

LastUpdated provides a mock function with given fields: providerName, id, providerType

Jump to

Keyboard shortcuts

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