-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmock_stats.go
101 lines (84 loc) · 3.16 KB
/
mock_stats.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// Code generated by MockGen. DO NOT EDIT.
// Source: stats.go
// Package stats is a generated GoMock package.
package stats
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockStats is a mock of Stats interface.
type MockStats struct {
ctrl *gomock.Controller
recorder *MockStatsMockRecorder
}
// MockStatsMockRecorder is the mock recorder for MockStats.
type MockStatsMockRecorder struct {
mock *MockStats
}
// NewMockStats creates a new mock instance.
func NewMockStats(ctrl *gomock.Controller) *MockStats {
mock := &MockStats{ctrl: ctrl}
mock.recorder = &MockStatsMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockStats) EXPECT() *MockStatsMockRecorder {
return m.recorder
}
// NewSampledTaggedStat mocks base method.
func (m *MockStats) NewSampledTaggedStat(name, statType string, tags Tags) Measurement {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewSampledTaggedStat", name, statType, tags)
ret0, _ := ret[0].(Measurement)
return ret0
}
// NewSampledTaggedStat indicates an expected call of NewSampledTaggedStat.
func (mr *MockStatsMockRecorder) NewSampledTaggedStat(name, statType, tags interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewSampledTaggedStat", reflect.TypeOf((*MockStats)(nil).NewSampledTaggedStat), name, statType, tags)
}
// NewStat mocks base method.
func (m *MockStats) NewStat(name, statType string) Measurement {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewStat", name, statType)
ret0, _ := ret[0].(Measurement)
return ret0
}
// NewStat indicates an expected call of NewStat.
func (mr *MockStatsMockRecorder) NewStat(name, statType interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewStat", reflect.TypeOf((*MockStats)(nil).NewStat), name, statType)
}
// NewTaggedStat mocks base method.
func (m *MockStats) NewTaggedStat(name, statType string, tags Tags) Measurement {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewTaggedStat", name, statType, tags)
ret0, _ := ret[0].(Measurement)
return ret0
}
// NewTaggedStat indicates an expected call of NewTaggedStat.
func (mr *MockStatsMockRecorder) NewTaggedStat(name, statType, tags interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewTaggedStat", reflect.TypeOf((*MockStats)(nil).NewTaggedStat), name, statType, tags)
}
// Start mocks base method.
func (m *MockStats) Start(ctx context.Context) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Start", ctx)
}
// Start indicates an expected call of Start.
func (mr *MockStatsMockRecorder) Start(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockStats)(nil).Start), ctx)
}
// Stop mocks base method.
func (m *MockStats) Stop() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Stop")
}
// Stop indicates an expected call of Stop.
func (mr *MockStatsMockRecorder) Stop() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockStats)(nil).Stop))
}