github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/src/x/ident/ident_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/m3db/m3/src/x/ident (interfaces: ID,TagIterator) 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 ident is a generated GoMock package. 25 package ident 26 27 import ( 28 "reflect" 29 30 "github.com/golang/mock/gomock" 31 ) 32 33 // MockID is a mock of ID interface. 34 type MockID struct { 35 ctrl *gomock.Controller 36 recorder *MockIDMockRecorder 37 } 38 39 // MockIDMockRecorder is the mock recorder for MockID. 40 type MockIDMockRecorder struct { 41 mock *MockID 42 } 43 44 // NewMockID creates a new mock instance. 45 func NewMockID(ctrl *gomock.Controller) *MockID { 46 mock := &MockID{ctrl: ctrl} 47 mock.recorder = &MockIDMockRecorder{mock} 48 return mock 49 } 50 51 // EXPECT returns an object that allows the caller to indicate expected use. 52 func (m *MockID) EXPECT() *MockIDMockRecorder { 53 return m.recorder 54 } 55 56 // Bytes mocks base method. 57 func (m *MockID) Bytes() []byte { 58 m.ctrl.T.Helper() 59 ret := m.ctrl.Call(m, "Bytes") 60 ret0, _ := ret[0].([]byte) 61 return ret0 62 } 63 64 // Bytes indicates an expected call of Bytes. 65 func (mr *MockIDMockRecorder) Bytes() *gomock.Call { 66 mr.mock.ctrl.T.Helper() 67 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bytes", reflect.TypeOf((*MockID)(nil).Bytes)) 68 } 69 70 // Equal mocks base method. 71 func (m *MockID) Equal(arg0 ID) bool { 72 m.ctrl.T.Helper() 73 ret := m.ctrl.Call(m, "Equal", arg0) 74 ret0, _ := ret[0].(bool) 75 return ret0 76 } 77 78 // Equal indicates an expected call of Equal. 79 func (mr *MockIDMockRecorder) Equal(arg0 interface{}) *gomock.Call { 80 mr.mock.ctrl.T.Helper() 81 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Equal", reflect.TypeOf((*MockID)(nil).Equal), arg0) 82 } 83 84 // Finalize mocks base method. 85 func (m *MockID) Finalize() { 86 m.ctrl.T.Helper() 87 m.ctrl.Call(m, "Finalize") 88 } 89 90 // Finalize indicates an expected call of Finalize. 91 func (mr *MockIDMockRecorder) Finalize() *gomock.Call { 92 mr.mock.ctrl.T.Helper() 93 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Finalize", reflect.TypeOf((*MockID)(nil).Finalize)) 94 } 95 96 // IsNoFinalize mocks base method. 97 func (m *MockID) IsNoFinalize() bool { 98 m.ctrl.T.Helper() 99 ret := m.ctrl.Call(m, "IsNoFinalize") 100 ret0, _ := ret[0].(bool) 101 return ret0 102 } 103 104 // IsNoFinalize indicates an expected call of IsNoFinalize. 105 func (mr *MockIDMockRecorder) IsNoFinalize() *gomock.Call { 106 mr.mock.ctrl.T.Helper() 107 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsNoFinalize", reflect.TypeOf((*MockID)(nil).IsNoFinalize)) 108 } 109 110 // NoFinalize mocks base method. 111 func (m *MockID) NoFinalize() { 112 m.ctrl.T.Helper() 113 m.ctrl.Call(m, "NoFinalize") 114 } 115 116 // NoFinalize indicates an expected call of NoFinalize. 117 func (mr *MockIDMockRecorder) NoFinalize() *gomock.Call { 118 mr.mock.ctrl.T.Helper() 119 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NoFinalize", reflect.TypeOf((*MockID)(nil).NoFinalize)) 120 } 121 122 // String mocks base method. 123 func (m *MockID) String() string { 124 m.ctrl.T.Helper() 125 ret := m.ctrl.Call(m, "String") 126 ret0, _ := ret[0].(string) 127 return ret0 128 } 129 130 // String indicates an expected call of String. 131 func (mr *MockIDMockRecorder) String() *gomock.Call { 132 mr.mock.ctrl.T.Helper() 133 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "String", reflect.TypeOf((*MockID)(nil).String)) 134 } 135 136 // MockTagIterator is a mock of TagIterator interface. 137 type MockTagIterator struct { 138 ctrl *gomock.Controller 139 recorder *MockTagIteratorMockRecorder 140 } 141 142 // MockTagIteratorMockRecorder is the mock recorder for MockTagIterator. 143 type MockTagIteratorMockRecorder struct { 144 mock *MockTagIterator 145 } 146 147 // NewMockTagIterator creates a new mock instance. 148 func NewMockTagIterator(ctrl *gomock.Controller) *MockTagIterator { 149 mock := &MockTagIterator{ctrl: ctrl} 150 mock.recorder = &MockTagIteratorMockRecorder{mock} 151 return mock 152 } 153 154 // EXPECT returns an object that allows the caller to indicate expected use. 155 func (m *MockTagIterator) EXPECT() *MockTagIteratorMockRecorder { 156 return m.recorder 157 } 158 159 // Close mocks base method. 160 func (m *MockTagIterator) Close() { 161 m.ctrl.T.Helper() 162 m.ctrl.Call(m, "Close") 163 } 164 165 // Close indicates an expected call of Close. 166 func (mr *MockTagIteratorMockRecorder) Close() *gomock.Call { 167 mr.mock.ctrl.T.Helper() 168 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockTagIterator)(nil).Close)) 169 } 170 171 // Current mocks base method. 172 func (m *MockTagIterator) Current() Tag { 173 m.ctrl.T.Helper() 174 ret := m.ctrl.Call(m, "Current") 175 ret0, _ := ret[0].(Tag) 176 return ret0 177 } 178 179 // Current indicates an expected call of Current. 180 func (mr *MockTagIteratorMockRecorder) Current() *gomock.Call { 181 mr.mock.ctrl.T.Helper() 182 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Current", reflect.TypeOf((*MockTagIterator)(nil).Current)) 183 } 184 185 // CurrentIndex mocks base method. 186 func (m *MockTagIterator) CurrentIndex() int { 187 m.ctrl.T.Helper() 188 ret := m.ctrl.Call(m, "CurrentIndex") 189 ret0, _ := ret[0].(int) 190 return ret0 191 } 192 193 // CurrentIndex indicates an expected call of CurrentIndex. 194 func (mr *MockTagIteratorMockRecorder) CurrentIndex() *gomock.Call { 195 mr.mock.ctrl.T.Helper() 196 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CurrentIndex", reflect.TypeOf((*MockTagIterator)(nil).CurrentIndex)) 197 } 198 199 // Duplicate mocks base method. 200 func (m *MockTagIterator) Duplicate() TagIterator { 201 m.ctrl.T.Helper() 202 ret := m.ctrl.Call(m, "Duplicate") 203 ret0, _ := ret[0].(TagIterator) 204 return ret0 205 } 206 207 // Duplicate indicates an expected call of Duplicate. 208 func (mr *MockTagIteratorMockRecorder) Duplicate() *gomock.Call { 209 mr.mock.ctrl.T.Helper() 210 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Duplicate", reflect.TypeOf((*MockTagIterator)(nil).Duplicate)) 211 } 212 213 // Err mocks base method. 214 func (m *MockTagIterator) Err() error { 215 m.ctrl.T.Helper() 216 ret := m.ctrl.Call(m, "Err") 217 ret0, _ := ret[0].(error) 218 return ret0 219 } 220 221 // Err indicates an expected call of Err. 222 func (mr *MockTagIteratorMockRecorder) Err() *gomock.Call { 223 mr.mock.ctrl.T.Helper() 224 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Err", reflect.TypeOf((*MockTagIterator)(nil).Err)) 225 } 226 227 // Len mocks base method. 228 func (m *MockTagIterator) Len() int { 229 m.ctrl.T.Helper() 230 ret := m.ctrl.Call(m, "Len") 231 ret0, _ := ret[0].(int) 232 return ret0 233 } 234 235 // Len indicates an expected call of Len. 236 func (mr *MockTagIteratorMockRecorder) Len() *gomock.Call { 237 mr.mock.ctrl.T.Helper() 238 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Len", reflect.TypeOf((*MockTagIterator)(nil).Len)) 239 } 240 241 // Next mocks base method. 242 func (m *MockTagIterator) Next() bool { 243 m.ctrl.T.Helper() 244 ret := m.ctrl.Call(m, "Next") 245 ret0, _ := ret[0].(bool) 246 return ret0 247 } 248 249 // Next indicates an expected call of Next. 250 func (mr *MockTagIteratorMockRecorder) Next() *gomock.Call { 251 mr.mock.ctrl.T.Helper() 252 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Next", reflect.TypeOf((*MockTagIterator)(nil).Next)) 253 } 254 255 // Remaining mocks base method. 256 func (m *MockTagIterator) Remaining() int { 257 m.ctrl.T.Helper() 258 ret := m.ctrl.Call(m, "Remaining") 259 ret0, _ := ret[0].(int) 260 return ret0 261 } 262 263 // Remaining indicates an expected call of Remaining. 264 func (mr *MockTagIteratorMockRecorder) Remaining() *gomock.Call { 265 mr.mock.ctrl.T.Helper() 266 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Remaining", reflect.TypeOf((*MockTagIterator)(nil).Remaining)) 267 } 268 269 // Rewind mocks base method. 270 func (m *MockTagIterator) Rewind() { 271 m.ctrl.T.Helper() 272 m.ctrl.Call(m, "Rewind") 273 } 274 275 // Rewind indicates an expected call of Rewind. 276 func (mr *MockTagIteratorMockRecorder) Rewind() *gomock.Call { 277 mr.mock.ctrl.T.Helper() 278 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Rewind", reflect.TypeOf((*MockTagIterator)(nil).Rewind)) 279 }