statsmock

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package statsmock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStats

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

MockStats is a mock of Stats interface.

func NewMockStats

func NewMockStats(ctrl *gomock.Controller) *MockStats

NewMockStats creates a new mock instance.

func (*MockStats) Add

func (m *MockStats) Add(metric string, value float64, opt stats.Option) error

Add mocks base method.

func (*MockStats) EXPECT

func (m *MockStats) EXPECT() *MockStatsMockRecorder

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

func (*MockStats) Gauge

func (m *MockStats) Gauge(metric string, value float64, opt stats.Option) error

Gauge mocks base method.

func (*MockStats) Histogram

func (m *MockStats) Histogram(metric string, value float64, opt stats.Option) error

Histogram mocks base method.

func (*MockStats) Increment

func (m *MockStats) Increment(metric string, opt stats.Option) error

Increment mocks base method.

type MockStatsMockRecorder

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

MockStatsMockRecorder is the mock recorder for MockStats.

func (*MockStatsMockRecorder) Add

func (mr *MockStatsMockRecorder) Add(metric, value, opt interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockStatsMockRecorder) Gauge

func (mr *MockStatsMockRecorder) Gauge(metric, value, opt interface{}) *gomock.Call

Gauge indicates an expected call of Gauge.

func (*MockStatsMockRecorder) Histogram

func (mr *MockStatsMockRecorder) Histogram(metric, value, opt interface{}) *gomock.Call

Histogram indicates an expected call of Histogram.

func (*MockStatsMockRecorder) Increment

func (mr *MockStatsMockRecorder) Increment(metric, opt interface{}) *gomock.Call

Increment indicates an expected call of Increment.

Jump to

Keyboard shortcuts

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