github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/apiserver/logsink/mocks/metrics_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/prometheus/client_golang/prometheus (interfaces: Counter,Gauge) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 gomock "github.com/golang/mock/gomock" 9 prometheus "github.com/prometheus/client_golang/prometheus" 10 go0 "github.com/prometheus/client_model/go" 11 reflect "reflect" 12 ) 13 14 // MockCounter is a mock of Counter interface 15 type MockCounter struct { 16 ctrl *gomock.Controller 17 recorder *MockCounterMockRecorder 18 } 19 20 // MockCounterMockRecorder is the mock recorder for MockCounter 21 type MockCounterMockRecorder struct { 22 mock *MockCounter 23 } 24 25 // NewMockCounter creates a new mock instance 26 func NewMockCounter(ctrl *gomock.Controller) *MockCounter { 27 mock := &MockCounter{ctrl: ctrl} 28 mock.recorder = &MockCounterMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use 33 func (m *MockCounter) EXPECT() *MockCounterMockRecorder { 34 return m.recorder 35 } 36 37 // Add mocks base method 38 func (m *MockCounter) Add(arg0 float64) { 39 m.ctrl.Call(m, "Add", arg0) 40 } 41 42 // Add indicates an expected call of Add 43 func (mr *MockCounterMockRecorder) Add(arg0 interface{}) *gomock.Call { 44 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockCounter)(nil).Add), arg0) 45 } 46 47 // Collect mocks base method 48 func (m *MockCounter) Collect(arg0 chan<- prometheus.Metric) { 49 m.ctrl.Call(m, "Collect", arg0) 50 } 51 52 // Collect indicates an expected call of Collect 53 func (mr *MockCounterMockRecorder) Collect(arg0 interface{}) *gomock.Call { 54 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Collect", reflect.TypeOf((*MockCounter)(nil).Collect), arg0) 55 } 56 57 // Desc mocks base method 58 func (m *MockCounter) Desc() *prometheus.Desc { 59 ret := m.ctrl.Call(m, "Desc") 60 ret0, _ := ret[0].(*prometheus.Desc) 61 return ret0 62 } 63 64 // Desc indicates an expected call of Desc 65 func (mr *MockCounterMockRecorder) Desc() *gomock.Call { 66 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Desc", reflect.TypeOf((*MockCounter)(nil).Desc)) 67 } 68 69 // Describe mocks base method 70 func (m *MockCounter) Describe(arg0 chan<- *prometheus.Desc) { 71 m.ctrl.Call(m, "Describe", arg0) 72 } 73 74 // Describe indicates an expected call of Describe 75 func (mr *MockCounterMockRecorder) Describe(arg0 interface{}) *gomock.Call { 76 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Describe", reflect.TypeOf((*MockCounter)(nil).Describe), arg0) 77 } 78 79 // Inc mocks base method 80 func (m *MockCounter) Inc() { 81 m.ctrl.Call(m, "Inc") 82 } 83 84 // Inc indicates an expected call of Inc 85 func (mr *MockCounterMockRecorder) Inc() *gomock.Call { 86 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Inc", reflect.TypeOf((*MockCounter)(nil).Inc)) 87 } 88 89 // Write mocks base method 90 func (m *MockCounter) Write(arg0 *go0.Metric) error { 91 ret := m.ctrl.Call(m, "Write", arg0) 92 ret0, _ := ret[0].(error) 93 return ret0 94 } 95 96 // Write indicates an expected call of Write 97 func (mr *MockCounterMockRecorder) Write(arg0 interface{}) *gomock.Call { 98 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockCounter)(nil).Write), arg0) 99 } 100 101 // MockGauge is a mock of Gauge interface 102 type MockGauge struct { 103 ctrl *gomock.Controller 104 recorder *MockGaugeMockRecorder 105 } 106 107 // MockGaugeMockRecorder is the mock recorder for MockGauge 108 type MockGaugeMockRecorder struct { 109 mock *MockGauge 110 } 111 112 // NewMockGauge creates a new mock instance 113 func NewMockGauge(ctrl *gomock.Controller) *MockGauge { 114 mock := &MockGauge{ctrl: ctrl} 115 mock.recorder = &MockGaugeMockRecorder{mock} 116 return mock 117 } 118 119 // EXPECT returns an object that allows the caller to indicate expected use 120 func (m *MockGauge) EXPECT() *MockGaugeMockRecorder { 121 return m.recorder 122 } 123 124 // Add mocks base method 125 func (m *MockGauge) Add(arg0 float64) { 126 m.ctrl.Call(m, "Add", arg0) 127 } 128 129 // Add indicates an expected call of Add 130 func (mr *MockGaugeMockRecorder) Add(arg0 interface{}) *gomock.Call { 131 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockGauge)(nil).Add), arg0) 132 } 133 134 // Collect mocks base method 135 func (m *MockGauge) Collect(arg0 chan<- prometheus.Metric) { 136 m.ctrl.Call(m, "Collect", arg0) 137 } 138 139 // Collect indicates an expected call of Collect 140 func (mr *MockGaugeMockRecorder) Collect(arg0 interface{}) *gomock.Call { 141 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Collect", reflect.TypeOf((*MockGauge)(nil).Collect), arg0) 142 } 143 144 // Dec mocks base method 145 func (m *MockGauge) Dec() { 146 m.ctrl.Call(m, "Dec") 147 } 148 149 // Dec indicates an expected call of Dec 150 func (mr *MockGaugeMockRecorder) Dec() *gomock.Call { 151 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Dec", reflect.TypeOf((*MockGauge)(nil).Dec)) 152 } 153 154 // Desc mocks base method 155 func (m *MockGauge) Desc() *prometheus.Desc { 156 ret := m.ctrl.Call(m, "Desc") 157 ret0, _ := ret[0].(*prometheus.Desc) 158 return ret0 159 } 160 161 // Desc indicates an expected call of Desc 162 func (mr *MockGaugeMockRecorder) Desc() *gomock.Call { 163 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Desc", reflect.TypeOf((*MockGauge)(nil).Desc)) 164 } 165 166 // Describe mocks base method 167 func (m *MockGauge) Describe(arg0 chan<- *prometheus.Desc) { 168 m.ctrl.Call(m, "Describe", arg0) 169 } 170 171 // Describe indicates an expected call of Describe 172 func (mr *MockGaugeMockRecorder) Describe(arg0 interface{}) *gomock.Call { 173 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Describe", reflect.TypeOf((*MockGauge)(nil).Describe), arg0) 174 } 175 176 // Inc mocks base method 177 func (m *MockGauge) Inc() { 178 m.ctrl.Call(m, "Inc") 179 } 180 181 // Inc indicates an expected call of Inc 182 func (mr *MockGaugeMockRecorder) Inc() *gomock.Call { 183 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Inc", reflect.TypeOf((*MockGauge)(nil).Inc)) 184 } 185 186 // Set mocks base method 187 func (m *MockGauge) Set(arg0 float64) { 188 m.ctrl.Call(m, "Set", arg0) 189 } 190 191 // Set indicates an expected call of Set 192 func (mr *MockGaugeMockRecorder) Set(arg0 interface{}) *gomock.Call { 193 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Set", reflect.TypeOf((*MockGauge)(nil).Set), arg0) 194 } 195 196 // SetToCurrentTime mocks base method 197 func (m *MockGauge) SetToCurrentTime() { 198 m.ctrl.Call(m, "SetToCurrentTime") 199 } 200 201 // SetToCurrentTime indicates an expected call of SetToCurrentTime 202 func (mr *MockGaugeMockRecorder) SetToCurrentTime() *gomock.Call { 203 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetToCurrentTime", reflect.TypeOf((*MockGauge)(nil).SetToCurrentTime)) 204 } 205 206 // Sub mocks base method 207 func (m *MockGauge) Sub(arg0 float64) { 208 m.ctrl.Call(m, "Sub", arg0) 209 } 210 211 // Sub indicates an expected call of Sub 212 func (mr *MockGaugeMockRecorder) Sub(arg0 interface{}) *gomock.Call { 213 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sub", reflect.TypeOf((*MockGauge)(nil).Sub), arg0) 214 } 215 216 // Write mocks base method 217 func (m *MockGauge) Write(arg0 *go0.Metric) error { 218 ret := m.ctrl.Call(m, "Write", arg0) 219 ret0, _ := ret[0].(error) 220 return ret0 221 } 222 223 // Write indicates an expected call of Write 224 func (mr *MockGaugeMockRecorder) Write(arg0 interface{}) *gomock.Call { 225 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockGauge)(nil).Write), arg0) 226 }