github.com/m3db/m3@v1.5.0/src/x/checked/checked_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/m3db/m3/src/x/checked (interfaces: Bytes) 3 4 // Copyright (c) 2021 Uber Technologies, Inc. 5 // 6 // Permission is hereby granted, free of charge, to any person obtaining a copy 7 // of this software and associated documentation files (the "Software"), to deal 8 // in the Software without restriction, including without limitation the rights 9 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 // copies of the Software, and to permit persons to whom the Software is 11 // furnished to do so, subject to the following conditions: 12 // 13 // The above copyright notice and this permission notice shall be included in 14 // all copies or substantial portions of the Software. 15 // 16 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 // THE SOFTWARE. 23 24 // Package checked is a generated GoMock package. 25 package checked 26 27 import ( 28 "reflect" 29 30 "github.com/m3db/m3/src/x/resource" 31 32 "github.com/golang/mock/gomock" 33 ) 34 35 // MockBytes is a mock of Bytes interface. 36 type MockBytes struct { 37 ctrl *gomock.Controller 38 recorder *MockBytesMockRecorder 39 } 40 41 // MockBytesMockRecorder is the mock recorder for MockBytes. 42 type MockBytesMockRecorder struct { 43 mock *MockBytes 44 } 45 46 // NewMockBytes creates a new mock instance. 47 func NewMockBytes(ctrl *gomock.Controller) *MockBytes { 48 mock := &MockBytes{ctrl: ctrl} 49 mock.recorder = &MockBytesMockRecorder{mock} 50 return mock 51 } 52 53 // EXPECT returns an object that allows the caller to indicate expected use. 54 func (m *MockBytes) EXPECT() *MockBytesMockRecorder { 55 return m.recorder 56 } 57 58 // Append mocks base method. 59 func (m *MockBytes) Append(arg0 byte) { 60 m.ctrl.T.Helper() 61 m.ctrl.Call(m, "Append", arg0) 62 } 63 64 // Append indicates an expected call of Append. 65 func (mr *MockBytesMockRecorder) Append(arg0 interface{}) *gomock.Call { 66 mr.mock.ctrl.T.Helper() 67 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Append", reflect.TypeOf((*MockBytes)(nil).Append), arg0) 68 } 69 70 // AppendAll mocks base method. 71 func (m *MockBytes) AppendAll(arg0 []byte) { 72 m.ctrl.T.Helper() 73 m.ctrl.Call(m, "AppendAll", arg0) 74 } 75 76 // AppendAll indicates an expected call of AppendAll. 77 func (mr *MockBytesMockRecorder) AppendAll(arg0 interface{}) *gomock.Call { 78 mr.mock.ctrl.T.Helper() 79 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AppendAll", reflect.TypeOf((*MockBytes)(nil).AppendAll), arg0) 80 } 81 82 // Bytes mocks base method. 83 func (m *MockBytes) Bytes() []byte { 84 m.ctrl.T.Helper() 85 ret := m.ctrl.Call(m, "Bytes") 86 ret0, _ := ret[0].([]byte) 87 return ret0 88 } 89 90 // Bytes indicates an expected call of Bytes. 91 func (mr *MockBytesMockRecorder) Bytes() *gomock.Call { 92 mr.mock.ctrl.T.Helper() 93 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bytes", reflect.TypeOf((*MockBytes)(nil).Bytes)) 94 } 95 96 // Cap mocks base method. 97 func (m *MockBytes) Cap() int { 98 m.ctrl.T.Helper() 99 ret := m.ctrl.Call(m, "Cap") 100 ret0, _ := ret[0].(int) 101 return ret0 102 } 103 104 // Cap indicates an expected call of Cap. 105 func (mr *MockBytesMockRecorder) Cap() *gomock.Call { 106 mr.mock.ctrl.T.Helper() 107 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cap", reflect.TypeOf((*MockBytes)(nil).Cap)) 108 } 109 110 // DecReads mocks base method. 111 func (m *MockBytes) DecReads() { 112 m.ctrl.T.Helper() 113 m.ctrl.Call(m, "DecReads") 114 } 115 116 // DecReads indicates an expected call of DecReads. 117 func (mr *MockBytesMockRecorder) DecReads() *gomock.Call { 118 mr.mock.ctrl.T.Helper() 119 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecReads", reflect.TypeOf((*MockBytes)(nil).DecReads)) 120 } 121 122 // DecRef mocks base method. 123 func (m *MockBytes) DecRef() { 124 m.ctrl.T.Helper() 125 m.ctrl.Call(m, "DecRef") 126 } 127 128 // DecRef indicates an expected call of DecRef. 129 func (mr *MockBytesMockRecorder) DecRef() *gomock.Call { 130 mr.mock.ctrl.T.Helper() 131 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecRef", reflect.TypeOf((*MockBytes)(nil).DecRef)) 132 } 133 134 // DecWrites mocks base method. 135 func (m *MockBytes) DecWrites() { 136 m.ctrl.T.Helper() 137 m.ctrl.Call(m, "DecWrites") 138 } 139 140 // DecWrites indicates an expected call of DecWrites. 141 func (mr *MockBytesMockRecorder) DecWrites() *gomock.Call { 142 mr.mock.ctrl.T.Helper() 143 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecWrites", reflect.TypeOf((*MockBytes)(nil).DecWrites)) 144 } 145 146 // DelayFinalizer mocks base method. 147 func (m *MockBytes) DelayFinalizer() resource.SimpleCloser { 148 m.ctrl.T.Helper() 149 ret := m.ctrl.Call(m, "DelayFinalizer") 150 ret0, _ := ret[0].(resource.SimpleCloser) 151 return ret0 152 } 153 154 // DelayFinalizer indicates an expected call of DelayFinalizer. 155 func (mr *MockBytesMockRecorder) DelayFinalizer() *gomock.Call { 156 mr.mock.ctrl.T.Helper() 157 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelayFinalizer", reflect.TypeOf((*MockBytes)(nil).DelayFinalizer)) 158 } 159 160 // Finalize mocks base method. 161 func (m *MockBytes) Finalize() { 162 m.ctrl.T.Helper() 163 m.ctrl.Call(m, "Finalize") 164 } 165 166 // Finalize indicates an expected call of Finalize. 167 func (mr *MockBytesMockRecorder) Finalize() *gomock.Call { 168 mr.mock.ctrl.T.Helper() 169 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Finalize", reflect.TypeOf((*MockBytes)(nil).Finalize)) 170 } 171 172 // IncReads mocks base method. 173 func (m *MockBytes) IncReads() { 174 m.ctrl.T.Helper() 175 m.ctrl.Call(m, "IncReads") 176 } 177 178 // IncReads indicates an expected call of IncReads. 179 func (mr *MockBytesMockRecorder) IncReads() *gomock.Call { 180 mr.mock.ctrl.T.Helper() 181 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IncReads", reflect.TypeOf((*MockBytes)(nil).IncReads)) 182 } 183 184 // IncRef mocks base method. 185 func (m *MockBytes) IncRef() { 186 m.ctrl.T.Helper() 187 m.ctrl.Call(m, "IncRef") 188 } 189 190 // IncRef indicates an expected call of IncRef. 191 func (mr *MockBytesMockRecorder) IncRef() *gomock.Call { 192 mr.mock.ctrl.T.Helper() 193 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IncRef", reflect.TypeOf((*MockBytes)(nil).IncRef)) 194 } 195 196 // IncWrites mocks base method. 197 func (m *MockBytes) IncWrites() { 198 m.ctrl.T.Helper() 199 m.ctrl.Call(m, "IncWrites") 200 } 201 202 // IncWrites indicates an expected call of IncWrites. 203 func (mr *MockBytesMockRecorder) IncWrites() *gomock.Call { 204 mr.mock.ctrl.T.Helper() 205 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IncWrites", reflect.TypeOf((*MockBytes)(nil).IncWrites)) 206 } 207 208 // Len mocks base method. 209 func (m *MockBytes) Len() int { 210 m.ctrl.T.Helper() 211 ret := m.ctrl.Call(m, "Len") 212 ret0, _ := ret[0].(int) 213 return ret0 214 } 215 216 // Len indicates an expected call of Len. 217 func (mr *MockBytesMockRecorder) Len() *gomock.Call { 218 mr.mock.ctrl.T.Helper() 219 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Len", reflect.TypeOf((*MockBytes)(nil).Len)) 220 } 221 222 // MoveRef mocks base method. 223 func (m *MockBytes) MoveRef() { 224 m.ctrl.T.Helper() 225 m.ctrl.Call(m, "MoveRef") 226 } 227 228 // MoveRef indicates an expected call of MoveRef. 229 func (mr *MockBytesMockRecorder) MoveRef() *gomock.Call { 230 mr.mock.ctrl.T.Helper() 231 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MoveRef", reflect.TypeOf((*MockBytes)(nil).MoveRef)) 232 } 233 234 // NumReaders mocks base method. 235 func (m *MockBytes) NumReaders() int { 236 m.ctrl.T.Helper() 237 ret := m.ctrl.Call(m, "NumReaders") 238 ret0, _ := ret[0].(int) 239 return ret0 240 } 241 242 // NumReaders indicates an expected call of NumReaders. 243 func (mr *MockBytesMockRecorder) NumReaders() *gomock.Call { 244 mr.mock.ctrl.T.Helper() 245 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NumReaders", reflect.TypeOf((*MockBytes)(nil).NumReaders)) 246 } 247 248 // NumRef mocks base method. 249 func (m *MockBytes) NumRef() int { 250 m.ctrl.T.Helper() 251 ret := m.ctrl.Call(m, "NumRef") 252 ret0, _ := ret[0].(int) 253 return ret0 254 } 255 256 // NumRef indicates an expected call of NumRef. 257 func (mr *MockBytesMockRecorder) NumRef() *gomock.Call { 258 mr.mock.ctrl.T.Helper() 259 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NumRef", reflect.TypeOf((*MockBytes)(nil).NumRef)) 260 } 261 262 // NumWriters mocks base method. 263 func (m *MockBytes) NumWriters() int { 264 m.ctrl.T.Helper() 265 ret := m.ctrl.Call(m, "NumWriters") 266 ret0, _ := ret[0].(int) 267 return ret0 268 } 269 270 // NumWriters indicates an expected call of NumWriters. 271 func (mr *MockBytesMockRecorder) NumWriters() *gomock.Call { 272 mr.mock.ctrl.T.Helper() 273 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NumWriters", reflect.TypeOf((*MockBytes)(nil).NumWriters)) 274 } 275 276 // Reset mocks base method. 277 func (m *MockBytes) Reset(arg0 []byte) { 278 m.ctrl.T.Helper() 279 m.ctrl.Call(m, "Reset", arg0) 280 } 281 282 // Reset indicates an expected call of Reset. 283 func (mr *MockBytesMockRecorder) Reset(arg0 interface{}) *gomock.Call { 284 mr.mock.ctrl.T.Helper() 285 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockBytes)(nil).Reset), arg0) 286 } 287 288 // Resize mocks base method. 289 func (m *MockBytes) Resize(arg0 int) { 290 m.ctrl.T.Helper() 291 m.ctrl.Call(m, "Resize", arg0) 292 } 293 294 // Resize indicates an expected call of Resize. 295 func (mr *MockBytesMockRecorder) Resize(arg0 interface{}) *gomock.Call { 296 mr.mock.ctrl.T.Helper() 297 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Resize", reflect.TypeOf((*MockBytes)(nil).Resize), arg0) 298 }