mocks

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 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) Close

func (_m *Metrics) Close() error

Close provides a mock function with given fields:

func (*Metrics) Count

func (_m *Metrics) Count(name string, value int64, tags ...string)

Count provides a mock function with given fields: name, value, tags

func (*Metrics) Decr

func (_m *Metrics) Decr(name string, tags ...string)

Decr provides a mock function with given fields: name, tags

func (*Metrics) Error

func (_m *Metrics) Error(errName string)

Error provides a mock function with given fields: errName

func (*Metrics) Gauge

func (_m *Metrics) Gauge(name string, value float64, rate float64, tags ...string)

Gauge provides a mock function with given fields: name, value, rate, tags

func (*Metrics) Histogram

func (_m *Metrics) Histogram(name string, value float64, rate float64, tags ...string)

Histogram provides a mock function with given fields: name, value, rate, tags

func (*Metrics) IncMonotonic

func (_m *Metrics) IncMonotonic(name string, tags ...string)

IncMonotonic provides a mock function with given fields: name, tags

func (*Metrics) Incr

func (_m *Metrics) Incr(name string, tags ...string)

Incr provides a mock function with given fields: name, tags

func (*Metrics) Latency

func (_m *Metrics) Latency(jobName string, start time.Time, tags ...string)

Latency provides a mock function with given fields: jobName, start, tags

func (*Metrics) Time

func (_m *Metrics) Time(name string, value time.Duration, tags ...string)

Time provides a mock function with given fields: name, value, tags

Jump to

Keyboard shortcuts

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