github.com/uber-go/tally/v4@v4.1.17/tallymock/stats_reporter.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/uber-go/tally (interfaces: StatsReporter) 3 4 // Package tallymock is a generated GoMock package. 5 package tallymock 6 7 import ( 8 reflect "reflect" 9 time "time" 10 11 gomock "github.com/golang/mock/gomock" 12 tally "github.com/uber-go/tally/v4" 13 ) 14 15 // MockStatsReporter is a mock of StatsReporter interface. 16 type MockStatsReporter struct { 17 ctrl *gomock.Controller 18 recorder *MockStatsReporterMockRecorder 19 } 20 21 // MockStatsReporterMockRecorder is the mock recorder for MockStatsReporter. 22 type MockStatsReporterMockRecorder struct { 23 mock *MockStatsReporter 24 } 25 26 // NewMockStatsReporter creates a new mock instance. 27 func NewMockStatsReporter(ctrl *gomock.Controller) *MockStatsReporter { 28 mock := &MockStatsReporter{ctrl: ctrl} 29 mock.recorder = &MockStatsReporterMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockStatsReporter) EXPECT() *MockStatsReporterMockRecorder { 35 return m.recorder 36 } 37 38 // Capabilities mocks base method. 39 func (m *MockStatsReporter) Capabilities() tally.Capabilities { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "Capabilities") 42 ret0, _ := ret[0].(tally.Capabilities) 43 return ret0 44 } 45 46 // Capabilities indicates an expected call of Capabilities. 47 func (mr *MockStatsReporterMockRecorder) Capabilities() *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Capabilities", reflect.TypeOf((*MockStatsReporter)(nil).Capabilities)) 50 } 51 52 // Flush mocks base method. 53 func (m *MockStatsReporter) Flush() { 54 m.ctrl.T.Helper() 55 m.ctrl.Call(m, "Flush") 56 } 57 58 // Flush indicates an expected call of Flush. 59 func (mr *MockStatsReporterMockRecorder) Flush() *gomock.Call { 60 mr.mock.ctrl.T.Helper() 61 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Flush", reflect.TypeOf((*MockStatsReporter)(nil).Flush)) 62 } 63 64 // ReportCounter mocks base method. 65 func (m *MockStatsReporter) ReportCounter(arg0 string, arg1 map[string]string, arg2 int64) { 66 m.ctrl.T.Helper() 67 m.ctrl.Call(m, "ReportCounter", arg0, arg1, arg2) 68 } 69 70 // ReportCounter indicates an expected call of ReportCounter. 71 func (mr *MockStatsReporterMockRecorder) ReportCounter(arg0, arg1, arg2 interface{}) *gomock.Call { 72 mr.mock.ctrl.T.Helper() 73 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReportCounter", reflect.TypeOf((*MockStatsReporter)(nil).ReportCounter), arg0, arg1, arg2) 74 } 75 76 // ReportGauge mocks base method. 77 func (m *MockStatsReporter) ReportGauge(arg0 string, arg1 map[string]string, arg2 float64) { 78 m.ctrl.T.Helper() 79 m.ctrl.Call(m, "ReportGauge", arg0, arg1, arg2) 80 } 81 82 // ReportGauge indicates an expected call of ReportGauge. 83 func (mr *MockStatsReporterMockRecorder) ReportGauge(arg0, arg1, arg2 interface{}) *gomock.Call { 84 mr.mock.ctrl.T.Helper() 85 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReportGauge", reflect.TypeOf((*MockStatsReporter)(nil).ReportGauge), arg0, arg1, arg2) 86 } 87 88 // ReportHistogramDurationSamples mocks base method. 89 func (m *MockStatsReporter) ReportHistogramDurationSamples(arg0 string, arg1 map[string]string, arg2 tally.Buckets, arg3, arg4 time.Duration, arg5 int64) { 90 m.ctrl.T.Helper() 91 m.ctrl.Call(m, "ReportHistogramDurationSamples", arg0, arg1, arg2, arg3, arg4, arg5) 92 } 93 94 // ReportHistogramDurationSamples indicates an expected call of ReportHistogramDurationSamples. 95 func (mr *MockStatsReporterMockRecorder) ReportHistogramDurationSamples(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call { 96 mr.mock.ctrl.T.Helper() 97 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReportHistogramDurationSamples", reflect.TypeOf((*MockStatsReporter)(nil).ReportHistogramDurationSamples), arg0, arg1, arg2, arg3, arg4, arg5) 98 } 99 100 // ReportHistogramValueSamples mocks base method. 101 func (m *MockStatsReporter) ReportHistogramValueSamples(arg0 string, arg1 map[string]string, arg2 tally.Buckets, arg3, arg4 float64, arg5 int64) { 102 m.ctrl.T.Helper() 103 m.ctrl.Call(m, "ReportHistogramValueSamples", arg0, arg1, arg2, arg3, arg4, arg5) 104 } 105 106 // ReportHistogramValueSamples indicates an expected call of ReportHistogramValueSamples. 107 func (mr *MockStatsReporterMockRecorder) ReportHistogramValueSamples(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call { 108 mr.mock.ctrl.T.Helper() 109 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReportHistogramValueSamples", reflect.TypeOf((*MockStatsReporter)(nil).ReportHistogramValueSamples), arg0, arg1, arg2, arg3, arg4, arg5) 110 } 111 112 // ReportTimer mocks base method. 113 func (m *MockStatsReporter) ReportTimer(arg0 string, arg1 map[string]string, arg2 time.Duration) { 114 m.ctrl.T.Helper() 115 m.ctrl.Call(m, "ReportTimer", arg0, arg1, arg2) 116 } 117 118 // ReportTimer indicates an expected call of ReportTimer. 119 func (mr *MockStatsReporterMockRecorder) ReportTimer(arg0, arg1, arg2 interface{}) *gomock.Call { 120 mr.mock.ctrl.T.Helper() 121 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReportTimer", reflect.TypeOf((*MockStatsReporter)(nil).ReportTimer), arg0, arg1, arg2) 122 }