github.com/enbility/spine-go@v0.7.0/mocks/EntityInterface.go (about) 1 // Code generated by mockery v2.45.0. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 model "github.com/enbility/spine-go/model" 7 mock "github.com/stretchr/testify/mock" 8 ) 9 10 // EntityInterface is an autogenerated mock type for the EntityInterface type 11 type EntityInterface struct { 12 mock.Mock 13 } 14 15 type EntityInterface_Expecter struct { 16 mock *mock.Mock 17 } 18 19 func (_m *EntityInterface) EXPECT() *EntityInterface_Expecter { 20 return &EntityInterface_Expecter{mock: &_m.Mock} 21 } 22 23 // Address provides a mock function with given fields: 24 func (_m *EntityInterface) Address() *model.EntityAddressType { 25 ret := _m.Called() 26 27 if len(ret) == 0 { 28 panic("no return value specified for Address") 29 } 30 31 var r0 *model.EntityAddressType 32 if rf, ok := ret.Get(0).(func() *model.EntityAddressType); ok { 33 r0 = rf() 34 } else { 35 if ret.Get(0) != nil { 36 r0 = ret.Get(0).(*model.EntityAddressType) 37 } 38 } 39 40 return r0 41 } 42 43 // EntityInterface_Address_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Address' 44 type EntityInterface_Address_Call struct { 45 *mock.Call 46 } 47 48 // Address is a helper method to define mock.On call 49 func (_e *EntityInterface_Expecter) Address() *EntityInterface_Address_Call { 50 return &EntityInterface_Address_Call{Call: _e.mock.On("Address")} 51 } 52 53 func (_c *EntityInterface_Address_Call) Run(run func()) *EntityInterface_Address_Call { 54 _c.Call.Run(func(args mock.Arguments) { 55 run() 56 }) 57 return _c 58 } 59 60 func (_c *EntityInterface_Address_Call) Return(_a0 *model.EntityAddressType) *EntityInterface_Address_Call { 61 _c.Call.Return(_a0) 62 return _c 63 } 64 65 func (_c *EntityInterface_Address_Call) RunAndReturn(run func() *model.EntityAddressType) *EntityInterface_Address_Call { 66 _c.Call.Return(run) 67 return _c 68 } 69 70 // Description provides a mock function with given fields: 71 func (_m *EntityInterface) Description() *model.DescriptionType { 72 ret := _m.Called() 73 74 if len(ret) == 0 { 75 panic("no return value specified for Description") 76 } 77 78 var r0 *model.DescriptionType 79 if rf, ok := ret.Get(0).(func() *model.DescriptionType); ok { 80 r0 = rf() 81 } else { 82 if ret.Get(0) != nil { 83 r0 = ret.Get(0).(*model.DescriptionType) 84 } 85 } 86 87 return r0 88 } 89 90 // EntityInterface_Description_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Description' 91 type EntityInterface_Description_Call struct { 92 *mock.Call 93 } 94 95 // Description is a helper method to define mock.On call 96 func (_e *EntityInterface_Expecter) Description() *EntityInterface_Description_Call { 97 return &EntityInterface_Description_Call{Call: _e.mock.On("Description")} 98 } 99 100 func (_c *EntityInterface_Description_Call) Run(run func()) *EntityInterface_Description_Call { 101 _c.Call.Run(func(args mock.Arguments) { 102 run() 103 }) 104 return _c 105 } 106 107 func (_c *EntityInterface_Description_Call) Return(_a0 *model.DescriptionType) *EntityInterface_Description_Call { 108 _c.Call.Return(_a0) 109 return _c 110 } 111 112 func (_c *EntityInterface_Description_Call) RunAndReturn(run func() *model.DescriptionType) *EntityInterface_Description_Call { 113 _c.Call.Return(run) 114 return _c 115 } 116 117 // EntityType provides a mock function with given fields: 118 func (_m *EntityInterface) EntityType() model.EntityTypeType { 119 ret := _m.Called() 120 121 if len(ret) == 0 { 122 panic("no return value specified for EntityType") 123 } 124 125 var r0 model.EntityTypeType 126 if rf, ok := ret.Get(0).(func() model.EntityTypeType); ok { 127 r0 = rf() 128 } else { 129 r0 = ret.Get(0).(model.EntityTypeType) 130 } 131 132 return r0 133 } 134 135 // EntityInterface_EntityType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EntityType' 136 type EntityInterface_EntityType_Call struct { 137 *mock.Call 138 } 139 140 // EntityType is a helper method to define mock.On call 141 func (_e *EntityInterface_Expecter) EntityType() *EntityInterface_EntityType_Call { 142 return &EntityInterface_EntityType_Call{Call: _e.mock.On("EntityType")} 143 } 144 145 func (_c *EntityInterface_EntityType_Call) Run(run func()) *EntityInterface_EntityType_Call { 146 _c.Call.Run(func(args mock.Arguments) { 147 run() 148 }) 149 return _c 150 } 151 152 func (_c *EntityInterface_EntityType_Call) Return(_a0 model.EntityTypeType) *EntityInterface_EntityType_Call { 153 _c.Call.Return(_a0) 154 return _c 155 } 156 157 func (_c *EntityInterface_EntityType_Call) RunAndReturn(run func() model.EntityTypeType) *EntityInterface_EntityType_Call { 158 _c.Call.Return(run) 159 return _c 160 } 161 162 // NextFeatureId provides a mock function with given fields: 163 func (_m *EntityInterface) NextFeatureId() uint { 164 ret := _m.Called() 165 166 if len(ret) == 0 { 167 panic("no return value specified for NextFeatureId") 168 } 169 170 var r0 uint 171 if rf, ok := ret.Get(0).(func() uint); ok { 172 r0 = rf() 173 } else { 174 r0 = ret.Get(0).(uint) 175 } 176 177 return r0 178 } 179 180 // EntityInterface_NextFeatureId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NextFeatureId' 181 type EntityInterface_NextFeatureId_Call struct { 182 *mock.Call 183 } 184 185 // NextFeatureId is a helper method to define mock.On call 186 func (_e *EntityInterface_Expecter) NextFeatureId() *EntityInterface_NextFeatureId_Call { 187 return &EntityInterface_NextFeatureId_Call{Call: _e.mock.On("NextFeatureId")} 188 } 189 190 func (_c *EntityInterface_NextFeatureId_Call) Run(run func()) *EntityInterface_NextFeatureId_Call { 191 _c.Call.Run(func(args mock.Arguments) { 192 run() 193 }) 194 return _c 195 } 196 197 func (_c *EntityInterface_NextFeatureId_Call) Return(_a0 uint) *EntityInterface_NextFeatureId_Call { 198 _c.Call.Return(_a0) 199 return _c 200 } 201 202 func (_c *EntityInterface_NextFeatureId_Call) RunAndReturn(run func() uint) *EntityInterface_NextFeatureId_Call { 203 _c.Call.Return(run) 204 return _c 205 } 206 207 // SetDescription provides a mock function with given fields: d 208 func (_m *EntityInterface) SetDescription(d *model.DescriptionType) { 209 _m.Called(d) 210 } 211 212 // EntityInterface_SetDescription_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetDescription' 213 type EntityInterface_SetDescription_Call struct { 214 *mock.Call 215 } 216 217 // SetDescription is a helper method to define mock.On call 218 // - d *model.DescriptionType 219 func (_e *EntityInterface_Expecter) SetDescription(d interface{}) *EntityInterface_SetDescription_Call { 220 return &EntityInterface_SetDescription_Call{Call: _e.mock.On("SetDescription", d)} 221 } 222 223 func (_c *EntityInterface_SetDescription_Call) Run(run func(d *model.DescriptionType)) *EntityInterface_SetDescription_Call { 224 _c.Call.Run(func(args mock.Arguments) { 225 run(args[0].(*model.DescriptionType)) 226 }) 227 return _c 228 } 229 230 func (_c *EntityInterface_SetDescription_Call) Return() *EntityInterface_SetDescription_Call { 231 _c.Call.Return() 232 return _c 233 } 234 235 func (_c *EntityInterface_SetDescription_Call) RunAndReturn(run func(*model.DescriptionType)) *EntityInterface_SetDescription_Call { 236 _c.Call.Return(run) 237 return _c 238 } 239 240 // NewEntityInterface creates a new instance of EntityInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 241 // The first argument is typically a *testing.T value. 242 func NewEntityInterface(t interface { 243 mock.TestingT 244 Cleanup(func()) 245 }) *EntityInterface { 246 mock := &EntityInterface{} 247 mock.Mock.Test(t) 248 249 t.Cleanup(func() { mock.AssertExpectations(t) }) 250 251 return mock 252 }