github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/src/metrics/metric/id/id_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/m3db/m3/src/metrics/metric/id (interfaces: ID,SortedTagIterator) 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 id is a generated GoMock package. 25 package id 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 // TagValue mocks base method. 71 func (m *MockID) TagValue(arg0 []byte) ([]byte, bool) { 72 m.ctrl.T.Helper() 73 ret := m.ctrl.Call(m, "TagValue", arg0) 74 ret0, _ := ret[0].([]byte) 75 ret1, _ := ret[1].(bool) 76 return ret0, ret1 77 } 78 79 // TagValue indicates an expected call of TagValue. 80 func (mr *MockIDMockRecorder) TagValue(arg0 interface{}) *gomock.Call { 81 mr.mock.ctrl.T.Helper() 82 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagValue", reflect.TypeOf((*MockID)(nil).TagValue), arg0) 83 } 84 85 // MockSortedTagIterator is a mock of SortedTagIterator interface. 86 type MockSortedTagIterator struct { 87 ctrl *gomock.Controller 88 recorder *MockSortedTagIteratorMockRecorder 89 } 90 91 // MockSortedTagIteratorMockRecorder is the mock recorder for MockSortedTagIterator. 92 type MockSortedTagIteratorMockRecorder struct { 93 mock *MockSortedTagIterator 94 } 95 96 // NewMockSortedTagIterator creates a new mock instance. 97 func NewMockSortedTagIterator(ctrl *gomock.Controller) *MockSortedTagIterator { 98 mock := &MockSortedTagIterator{ctrl: ctrl} 99 mock.recorder = &MockSortedTagIteratorMockRecorder{mock} 100 return mock 101 } 102 103 // EXPECT returns an object that allows the caller to indicate expected use. 104 func (m *MockSortedTagIterator) EXPECT() *MockSortedTagIteratorMockRecorder { 105 return m.recorder 106 } 107 108 // Close mocks base method. 109 func (m *MockSortedTagIterator) Close() { 110 m.ctrl.T.Helper() 111 m.ctrl.Call(m, "Close") 112 } 113 114 // Close indicates an expected call of Close. 115 func (mr *MockSortedTagIteratorMockRecorder) Close() *gomock.Call { 116 mr.mock.ctrl.T.Helper() 117 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockSortedTagIterator)(nil).Close)) 118 } 119 120 // Current mocks base method. 121 func (m *MockSortedTagIterator) Current() ([]byte, []byte) { 122 m.ctrl.T.Helper() 123 ret := m.ctrl.Call(m, "Current") 124 ret0, _ := ret[0].([]byte) 125 ret1, _ := ret[1].([]byte) 126 return ret0, ret1 127 } 128 129 // Current indicates an expected call of Current. 130 func (mr *MockSortedTagIteratorMockRecorder) Current() *gomock.Call { 131 mr.mock.ctrl.T.Helper() 132 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Current", reflect.TypeOf((*MockSortedTagIterator)(nil).Current)) 133 } 134 135 // Err mocks base method. 136 func (m *MockSortedTagIterator) Err() error { 137 m.ctrl.T.Helper() 138 ret := m.ctrl.Call(m, "Err") 139 ret0, _ := ret[0].(error) 140 return ret0 141 } 142 143 // Err indicates an expected call of Err. 144 func (mr *MockSortedTagIteratorMockRecorder) Err() *gomock.Call { 145 mr.mock.ctrl.T.Helper() 146 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Err", reflect.TypeOf((*MockSortedTagIterator)(nil).Err)) 147 } 148 149 // Next mocks base method. 150 func (m *MockSortedTagIterator) Next() bool { 151 m.ctrl.T.Helper() 152 ret := m.ctrl.Call(m, "Next") 153 ret0, _ := ret[0].(bool) 154 return ret0 155 } 156 157 // Next indicates an expected call of Next. 158 func (mr *MockSortedTagIteratorMockRecorder) Next() *gomock.Call { 159 mr.mock.ctrl.T.Helper() 160 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Next", reflect.TypeOf((*MockSortedTagIterator)(nil).Next)) 161 } 162 163 // Reset mocks base method. 164 func (m *MockSortedTagIterator) Reset(arg0 []byte) { 165 m.ctrl.T.Helper() 166 m.ctrl.Call(m, "Reset", arg0) 167 } 168 169 // Reset indicates an expected call of Reset. 170 func (mr *MockSortedTagIteratorMockRecorder) Reset(arg0 interface{}) *gomock.Call { 171 mr.mock.ctrl.T.Helper() 172 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockSortedTagIterator)(nil).Reset), arg0) 173 }