mock_metrics

package
v0.0.0-...-ad17f4e Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package mock_metrics is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCounterT

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

MockCounterT is a mock of CounterT interface

func NewMockCounterT

func NewMockCounterT(ctrl *gomock.Controller) *MockCounterT

NewMockCounterT creates a new mock instance

func (*MockCounterT) Add

func (m *MockCounterT) Add(labels map[string]string, value float64) error

Add mocks base method

func (*MockCounterT) CreationTime

func (m *MockCounterT) CreationTime() time.Time

CreationTime mocks base method

func (*MockCounterT) EXPECT

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

func (*MockCounterT) Metric

func (m *MockCounterT) Metric() *prometheus.CounterVec

Metric mocks base method

type MockCounterTMockRecorder

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

MockCounterTMockRecorder is the mock recorder for MockCounterT

func (*MockCounterTMockRecorder) Add

func (mr *MockCounterTMockRecorder) Add(labels, value interface{}) *gomock.Call

Add indicates an expected call of Add

func (*MockCounterTMockRecorder) CreationTime

func (mr *MockCounterTMockRecorder) CreationTime() *gomock.Call

CreationTime indicates an expected call of CreationTime

func (*MockCounterTMockRecorder) Metric

func (mr *MockCounterTMockRecorder) Metric() *gomock.Call

Metric indicates an expected call of Metric

type MockHistogramT

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

MockHistogramT is a mock of HistogramT interface

func NewMockHistogramT

func NewMockHistogramT(ctrl *gomock.Controller) *MockHistogramT

NewMockHistogramT creates a new mock instance

func (*MockHistogramT) CreationTime

func (m *MockHistogramT) CreationTime() time.Time

CreationTime mocks base method

func (*MockHistogramT) EXPECT

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

func (*MockHistogramT) Metric

Metric mocks base method

func (*MockHistogramT) Observe

func (m *MockHistogramT) Observe(labels map[string]string, values []float64) error

Observe mocks base method

type MockHistogramTMockRecorder

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

MockHistogramTMockRecorder is the mock recorder for MockHistogramT

func (*MockHistogramTMockRecorder) CreationTime

func (mr *MockHistogramTMockRecorder) CreationTime() *gomock.Call

CreationTime indicates an expected call of CreationTime

func (*MockHistogramTMockRecorder) Metric

func (mr *MockHistogramTMockRecorder) Metric() *gomock.Call

Metric indicates an expected call of Metric

func (*MockHistogramTMockRecorder) Observe

func (mr *MockHistogramTMockRecorder) Observe(labels, values interface{}) *gomock.Call

Observe indicates an expected call of Observe

type MockManagerT

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

MockManagerT is a mock of ManagerT interface

func NewMockManagerT

func NewMockManagerT(ctrl *gomock.Controller) *MockManagerT

NewMockManagerT creates a new mock instance

func (*MockManagerT) AddCounter

func (m *MockManagerT) AddCounter(name, help string, labelNames []string) error

AddCounter mocks base method

func (*MockManagerT) AddHistogram

func (m *MockManagerT) AddHistogram(name, help string, labelNames []string, buckets []float64) error

AddHistogram mocks base method

func (*MockManagerT) EXPECT

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

func (*MockManagerT) GetCounter

func (m *MockManagerT) GetCounter(name string) (metrics.CounterT, error)

GetCounter mocks base method

func (*MockManagerT) GetHistogram

func (m *MockManagerT) GetHistogram(name string) (metrics.HistogramT, error)

GetHistogram mocks base method

type MockManagerTMockRecorder

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

MockManagerTMockRecorder is the mock recorder for MockManagerT

func (*MockManagerTMockRecorder) AddCounter

func (mr *MockManagerTMockRecorder) AddCounter(name, help, labelNames interface{}) *gomock.Call

AddCounter indicates an expected call of AddCounter

func (*MockManagerTMockRecorder) AddHistogram

func (mr *MockManagerTMockRecorder) AddHistogram(name, help, labelNames, buckets interface{}) *gomock.Call

AddHistogram indicates an expected call of AddHistogram

func (*MockManagerTMockRecorder) GetCounter

func (mr *MockManagerTMockRecorder) GetCounter(name interface{}) *gomock.Call

GetCounter indicates an expected call of GetCounter

func (*MockManagerTMockRecorder) GetHistogram

func (mr *MockManagerTMockRecorder) GetHistogram(name interface{}) *gomock.Call

GetHistogram indicates an expected call of GetHistogram

Jump to

Keyboard shortcuts

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