forked from topfreegames/pitaya
-
Notifications
You must be signed in to change notification settings - Fork 0
/
reporter.go
90 lines (75 loc) · 3.12 KB
/
reporter.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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/topfreegames/pitaya/v2/metrics (interfaces: Reporter)
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockReporter is a mock of Reporter interface.
type MockReporter struct {
ctrl *gomock.Controller
recorder *MockReporterMockRecorder
}
// MockReporterMockRecorder is the mock recorder for MockReporter.
type MockReporterMockRecorder struct {
mock *MockReporter
}
// NewMockReporter creates a new mock instance.
func NewMockReporter(ctrl *gomock.Controller) *MockReporter {
mock := &MockReporter{ctrl: ctrl}
mock.recorder = &MockReporterMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockReporter) EXPECT() *MockReporterMockRecorder {
return m.recorder
}
// ReportCount mocks base method.
func (m *MockReporter) ReportCount(arg0 string, arg1 map[string]string, arg2 float64) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ReportCount", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// ReportCount indicates an expected call of ReportCount.
func (mr *MockReporterMockRecorder) ReportCount(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReportCount", reflect.TypeOf((*MockReporter)(nil).ReportCount), arg0, arg1, arg2)
}
// ReportGauge mocks base method.
func (m *MockReporter) ReportGauge(arg0 string, arg1 map[string]string, arg2 float64) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ReportGauge", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// ReportGauge indicates an expected call of ReportGauge.
func (mr *MockReporterMockRecorder) ReportGauge(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReportGauge", reflect.TypeOf((*MockReporter)(nil).ReportGauge), arg0, arg1, arg2)
}
// ReportHistogram mocks base method.
func (m *MockReporter) ReportHistogram(arg0 string, arg1 map[string]string, arg2 float64) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ReportHistogram", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// ReportHistogram indicates an expected call of ReportHistogram.
func (mr *MockReporterMockRecorder) ReportHistogram(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReportHistogram", reflect.TypeOf((*MockReporter)(nil).ReportHistogram), arg0, arg1, arg2)
}
// ReportSummary mocks base method.
func (m *MockReporter) ReportSummary(arg0 string, arg1 map[string]string, arg2 float64) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ReportSummary", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// ReportSummary indicates an expected call of ReportSummary.
func (mr *MockReporterMockRecorder) ReportSummary(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReportSummary", reflect.TypeOf((*MockReporter)(nil).ReportSummary), arg0, arg1, arg2)
}