mock

package
v0.6.0-nightly.20230221 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

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

Counter is a mock of Counter interface.

func NewCounter

func NewCounter(ctrl *gomock.Controller) *Counter

NewCounter creates a new mock instance.

func (*Counter) EXPECT

func (m *Counter) EXPECT() *CounterMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*Counter) Inc

func (m *Counter) Inc(arg0 ...float64)

Inc mocks base method.

type CounterMockRecorder

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

CounterMockRecorder is the mock recorder for Counter.

func (*CounterMockRecorder) Inc

func (mr *CounterMockRecorder) Inc(arg0 ...interface{}) *gomock.Call

Inc indicates an expected call of Inc.

type Gauge

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

Gauge is a mock of Gauge interface.

func NewGauge

func NewGauge(ctrl *gomock.Controller) *Gauge

NewGauge creates a new mock instance.

func (*Gauge) Dec

func (m *Gauge) Dec(arg0 ...float64)

Dec mocks base method.

func (*Gauge) EXPECT

func (m *Gauge) EXPECT() *GaugeMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*Gauge) Inc

func (m *Gauge) Inc(arg0 ...float64)

Inc mocks base method.

func (*Gauge) Set

func (m *Gauge) Set(arg0 float64)

Set mocks base method.

type GaugeMockRecorder

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

GaugeMockRecorder is the mock recorder for Gauge.

func (*GaugeMockRecorder) Dec

func (mr *GaugeMockRecorder) Dec(arg0 ...interface{}) *gomock.Call

Dec indicates an expected call of Dec.

func (*GaugeMockRecorder) Inc

func (mr *GaugeMockRecorder) Inc(arg0 ...interface{}) *gomock.Call

Inc indicates an expected call of Inc.

func (*GaugeMockRecorder) Set

func (mr *GaugeMockRecorder) Set(arg0 interface{}) *gomock.Call

Set indicates an expected call of Set.

type LabeledCounter

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

LabeledCounter is a mock of LabeledCounter interface.

func NewLabeledCounter

func NewLabeledCounter(ctrl *gomock.Controller) *LabeledCounter

NewLabeledCounter creates a new mock instance.

func (*LabeledCounter) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*LabeledCounter) WithValues

func (m *LabeledCounter) WithValues(arg0 ...string) metrics.Counter

WithValues mocks base method.

type LabeledCounterMockRecorder

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

LabeledCounterMockRecorder is the mock recorder for LabeledCounter.

func (*LabeledCounterMockRecorder) WithValues

func (mr *LabeledCounterMockRecorder) WithValues(arg0 ...interface{}) *gomock.Call

WithValues indicates an expected call of WithValues.

type LabeledGauge

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

LabeledGauge is a mock of LabeledGauge interface.

func NewLabeledGauge

func NewLabeledGauge(ctrl *gomock.Controller) *LabeledGauge

NewLabeledGauge creates a new mock instance.

func (*LabeledGauge) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*LabeledGauge) WithValues

func (m *LabeledGauge) WithValues(arg0 ...string) metrics.Gauge

WithValues mocks base method.

type LabeledGaugeMockRecorder

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

LabeledGaugeMockRecorder is the mock recorder for LabeledGauge.

func (*LabeledGaugeMockRecorder) WithValues

func (mr *LabeledGaugeMockRecorder) WithValues(arg0 ...interface{}) *gomock.Call

WithValues indicates an expected call of WithValues.

type LabeledTimer

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

LabeledTimer is a mock of LabeledTimer interface.

func NewLabeledTimer

func NewLabeledTimer(ctrl *gomock.Controller) *LabeledTimer

NewLabeledTimer creates a new mock instance.

func (*LabeledTimer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*LabeledTimer) WithValues

func (m *LabeledTimer) WithValues(arg0 ...string) metrics.Timer

WithValues mocks base method.

type LabeledTimerMockRecorder

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

LabeledTimerMockRecorder is the mock recorder for LabeledTimer.

func (*LabeledTimerMockRecorder) WithValues

func (mr *LabeledTimerMockRecorder) WithValues(arg0 ...interface{}) *gomock.Call

WithValues indicates an expected call of WithValues.

type Registry

type Registry struct {
	Ctrl *gomock.Controller

	SetupCounter        func(source *Counter)
	SetupGauge          func(source *Gauge)
	SetupTimer          func(source *Timer)
	SetupLabeledCounter func(source *LabeledCounter)
	SetupLabeledGauge   func(source *LabeledGauge)
	SetupLabeledTimer   func(source *LabeledTimer)
}

Registry is a metrics registry that can build mocked metrics.

func (Registry) NewCounter

func (r Registry) NewCounter(name, help string) metrics.Counter

func (Registry) NewGauge

func (r Registry) NewGauge(name, help string) metrics.Gauge

func (Registry) NewLabeledCounter

func (r Registry) NewLabeledCounter(name, help string, labels ...string) metrics.LabeledCounter

func (Registry) NewLabeledGauge

func (r Registry) NewLabeledGauge(name, help string, labels ...string) metrics.LabeledGauge

func (Registry) NewLabeledTimer

func (r Registry) NewLabeledTimer(name, help string, labels ...string) metrics.LabeledTimer

func (Registry) NewTimer

func (r Registry) NewTimer(name, help string) metrics.Timer

type Timer

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

Timer is a mock of Timer interface.

func NewTimer

func NewTimer(ctrl *gomock.Controller) *Timer

NewTimer creates a new mock instance.

func (*Timer) EXPECT

func (m *Timer) EXPECT() *TimerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*Timer) Update

func (m *Timer) Update(arg0 time.Duration)

Update mocks base method.

func (*Timer) UpdateSince

func (m *Timer) UpdateSince(arg0 time.Time)

UpdateSince mocks base method.

type TimerMockRecorder

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

TimerMockRecorder is the mock recorder for Timer.

func (*TimerMockRecorder) Update

func (mr *TimerMockRecorder) Update(arg0 interface{}) *gomock.Call

Update indicates an expected call of Update.

func (*TimerMockRecorder) UpdateSince

func (mr *TimerMockRecorder) UpdateSince(arg0 interface{}) *gomock.Call

UpdateSince indicates an expected call of UpdateSince.

Jump to

Keyboard shortcuts

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