github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/src/m3em/build/build_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: ../../build/types.go 3 4 // Copyright (c) 2022 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 build is a generated GoMock package. 25 package build 26 27 import ( 28 "reflect" 29 30 "github.com/m3db/m3/src/m3em/os/fs" 31 32 "github.com/golang/mock/gomock" 33 ) 34 35 // MockIterableBytesWithID is a mock of IterableBytesWithID interface. 36 type MockIterableBytesWithID struct { 37 ctrl *gomock.Controller 38 recorder *MockIterableBytesWithIDMockRecorder 39 } 40 41 // MockIterableBytesWithIDMockRecorder is the mock recorder for MockIterableBytesWithID. 42 type MockIterableBytesWithIDMockRecorder struct { 43 mock *MockIterableBytesWithID 44 } 45 46 // NewMockIterableBytesWithID creates a new mock instance. 47 func NewMockIterableBytesWithID(ctrl *gomock.Controller) *MockIterableBytesWithID { 48 mock := &MockIterableBytesWithID{ctrl: ctrl} 49 mock.recorder = &MockIterableBytesWithIDMockRecorder{mock} 50 return mock 51 } 52 53 // EXPECT returns an object that allows the caller to indicate expected use. 54 func (m *MockIterableBytesWithID) EXPECT() *MockIterableBytesWithIDMockRecorder { 55 return m.recorder 56 } 57 58 // ID mocks base method. 59 func (m *MockIterableBytesWithID) ID() string { 60 m.ctrl.T.Helper() 61 ret := m.ctrl.Call(m, "ID") 62 ret0, _ := ret[0].(string) 63 return ret0 64 } 65 66 // ID indicates an expected call of ID. 67 func (mr *MockIterableBytesWithIDMockRecorder) ID() *gomock.Call { 68 mr.mock.ctrl.T.Helper() 69 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ID", reflect.TypeOf((*MockIterableBytesWithID)(nil).ID)) 70 } 71 72 // Iter mocks base method. 73 func (m *MockIterableBytesWithID) Iter(bufferSize int) (fs.FileReaderIter, error) { 74 m.ctrl.T.Helper() 75 ret := m.ctrl.Call(m, "Iter", bufferSize) 76 ret0, _ := ret[0].(fs.FileReaderIter) 77 ret1, _ := ret[1].(error) 78 return ret0, ret1 79 } 80 81 // Iter indicates an expected call of Iter. 82 func (mr *MockIterableBytesWithIDMockRecorder) Iter(bufferSize interface{}) *gomock.Call { 83 mr.mock.ctrl.T.Helper() 84 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Iter", reflect.TypeOf((*MockIterableBytesWithID)(nil).Iter), bufferSize) 85 } 86 87 // MockServiceBuild is a mock of ServiceBuild interface. 88 type MockServiceBuild struct { 89 ctrl *gomock.Controller 90 recorder *MockServiceBuildMockRecorder 91 } 92 93 // MockServiceBuildMockRecorder is the mock recorder for MockServiceBuild. 94 type MockServiceBuildMockRecorder struct { 95 mock *MockServiceBuild 96 } 97 98 // NewMockServiceBuild creates a new mock instance. 99 func NewMockServiceBuild(ctrl *gomock.Controller) *MockServiceBuild { 100 mock := &MockServiceBuild{ctrl: ctrl} 101 mock.recorder = &MockServiceBuildMockRecorder{mock} 102 return mock 103 } 104 105 // EXPECT returns an object that allows the caller to indicate expected use. 106 func (m *MockServiceBuild) EXPECT() *MockServiceBuildMockRecorder { 107 return m.recorder 108 } 109 110 // ID mocks base method. 111 func (m *MockServiceBuild) ID() string { 112 m.ctrl.T.Helper() 113 ret := m.ctrl.Call(m, "ID") 114 ret0, _ := ret[0].(string) 115 return ret0 116 } 117 118 // ID indicates an expected call of ID. 119 func (mr *MockServiceBuildMockRecorder) ID() *gomock.Call { 120 mr.mock.ctrl.T.Helper() 121 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ID", reflect.TypeOf((*MockServiceBuild)(nil).ID)) 122 } 123 124 // Iter mocks base method. 125 func (m *MockServiceBuild) Iter(bufferSize int) (fs.FileReaderIter, error) { 126 m.ctrl.T.Helper() 127 ret := m.ctrl.Call(m, "Iter", bufferSize) 128 ret0, _ := ret[0].(fs.FileReaderIter) 129 ret1, _ := ret[1].(error) 130 return ret0, ret1 131 } 132 133 // Iter indicates an expected call of Iter. 134 func (mr *MockServiceBuildMockRecorder) Iter(bufferSize interface{}) *gomock.Call { 135 mr.mock.ctrl.T.Helper() 136 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Iter", reflect.TypeOf((*MockServiceBuild)(nil).Iter), bufferSize) 137 } 138 139 // SourcePath mocks base method. 140 func (m *MockServiceBuild) SourcePath() string { 141 m.ctrl.T.Helper() 142 ret := m.ctrl.Call(m, "SourcePath") 143 ret0, _ := ret[0].(string) 144 return ret0 145 } 146 147 // SourcePath indicates an expected call of SourcePath. 148 func (mr *MockServiceBuildMockRecorder) SourcePath() *gomock.Call { 149 mr.mock.ctrl.T.Helper() 150 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SourcePath", reflect.TypeOf((*MockServiceBuild)(nil).SourcePath)) 151 } 152 153 // MockServiceConfiguration is a mock of ServiceConfiguration interface. 154 type MockServiceConfiguration struct { 155 ctrl *gomock.Controller 156 recorder *MockServiceConfigurationMockRecorder 157 } 158 159 // MockServiceConfigurationMockRecorder is the mock recorder for MockServiceConfiguration. 160 type MockServiceConfigurationMockRecorder struct { 161 mock *MockServiceConfiguration 162 } 163 164 // NewMockServiceConfiguration creates a new mock instance. 165 func NewMockServiceConfiguration(ctrl *gomock.Controller) *MockServiceConfiguration { 166 mock := &MockServiceConfiguration{ctrl: ctrl} 167 mock.recorder = &MockServiceConfigurationMockRecorder{mock} 168 return mock 169 } 170 171 // EXPECT returns an object that allows the caller to indicate expected use. 172 func (m *MockServiceConfiguration) EXPECT() *MockServiceConfigurationMockRecorder { 173 return m.recorder 174 } 175 176 // Bytes mocks base method. 177 func (m *MockServiceConfiguration) Bytes() ([]byte, error) { 178 m.ctrl.T.Helper() 179 ret := m.ctrl.Call(m, "Bytes") 180 ret0, _ := ret[0].([]byte) 181 ret1, _ := ret[1].(error) 182 return ret0, ret1 183 } 184 185 // Bytes indicates an expected call of Bytes. 186 func (mr *MockServiceConfigurationMockRecorder) Bytes() *gomock.Call { 187 mr.mock.ctrl.T.Helper() 188 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bytes", reflect.TypeOf((*MockServiceConfiguration)(nil).Bytes)) 189 } 190 191 // ID mocks base method. 192 func (m *MockServiceConfiguration) ID() string { 193 m.ctrl.T.Helper() 194 ret := m.ctrl.Call(m, "ID") 195 ret0, _ := ret[0].(string) 196 return ret0 197 } 198 199 // ID indicates an expected call of ID. 200 func (mr *MockServiceConfigurationMockRecorder) ID() *gomock.Call { 201 mr.mock.ctrl.T.Helper() 202 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ID", reflect.TypeOf((*MockServiceConfiguration)(nil).ID)) 203 } 204 205 // Iter mocks base method. 206 func (m *MockServiceConfiguration) Iter(bufferSize int) (fs.FileReaderIter, error) { 207 m.ctrl.T.Helper() 208 ret := m.ctrl.Call(m, "Iter", bufferSize) 209 ret0, _ := ret[0].(fs.FileReaderIter) 210 ret1, _ := ret[1].(error) 211 return ret0, ret1 212 } 213 214 // Iter indicates an expected call of Iter. 215 func (mr *MockServiceConfigurationMockRecorder) Iter(bufferSize interface{}) *gomock.Call { 216 mr.mock.ctrl.T.Helper() 217 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Iter", reflect.TypeOf((*MockServiceConfiguration)(nil).Iter), bufferSize) 218 }