Documentation ¶
Overview ¶
Package statsmock is a generated GoMock package.
Index ¶
- type MockStats
- func (m *MockStats) Add(metric string, value float64, opt stats.Option) error
- func (m *MockStats) EXPECT() *MockStatsMockRecorder
- func (m *MockStats) Gauge(metric string, value float64, opt stats.Option) error
- func (m *MockStats) Histogram(metric string, value float64, opt stats.Option) error
- func (m *MockStats) Increment(metric string, opt stats.Option) error
- type MockStatsMockRecorder
- func (mr *MockStatsMockRecorder) Add(metric, value, opt interface{}) *gomock.Call
- func (mr *MockStatsMockRecorder) Gauge(metric, value, opt interface{}) *gomock.Call
- func (mr *MockStatsMockRecorder) Histogram(metric, value, opt interface{}) *gomock.Call
- func (mr *MockStatsMockRecorder) Increment(metric, opt interface{}) *gomock.Call
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) EXPECT ¶
func (m *MockStats) EXPECT() *MockStatsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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.
Click to show internal directories.
Click to hide internal directories.