mocks

package
v0.0.0-...-8940cb8 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: MIT Imports: 2 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) EXPECT

func (_m *Metrics) EXPECT() *Metrics_Expecter

func (*Metrics) RegisterCollector

func (_m *Metrics) RegisterCollector(collector prometheus.Collector)

RegisterCollector provides a mock function with given fields: collector

type Metrics_Expecter

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

func (*Metrics_Expecter) RegisterCollector

func (_e *Metrics_Expecter) RegisterCollector(collector interface{}) *Metrics_RegisterCollector_Call

RegisterCollector is a helper method to define mock.On call

  • collector prometheus.Collector

type Metrics_RegisterCollector_Call

type Metrics_RegisterCollector_Call struct {
	*mock.Call
}

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

func (*Metrics_RegisterCollector_Call) Return

func (*Metrics_RegisterCollector_Call) Run

func (*Metrics_RegisterCollector_Call) RunAndReturn

Jump to

Keyboard shortcuts

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