chore: regenerate mockery mocks for updated DeleteBlob signature
- commit
- f5d3652f7afc5bf63034b1ea0c429125101d1693
- author
- brice · · 2026-03-27 18:36 UTC
- parent
- ae1a7a4
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
1 file · +17 -8
M internal/boundaries/out/mocks/mock_blob_storage.go +17 -8
| @@ -279,20 +279,29 @@ func (_c *MockBlobStorage_CleanupStaleUploads_Call) RunAndReturn(run func(maxAge | |||
| 279 | 279 | } | |
| 280 | 280 | ||
| 281 | 281 | // DeleteBlob provides a mock function for the type MockBlobStorage | |
| 282 | - | func (_mock *MockBlobStorage) DeleteBlob(digest string) error { | |
| 282 | + | func (_mock *MockBlobStorage) DeleteBlob(digest string) (int64, error) { | |
| 283 | 283 | ret := _mock.Called(digest) | |
| 284 | 284 | ||
| 285 | 285 | if len(ret) == 0 { | |
| 286 | 286 | panic("no return value specified for DeleteBlob") | |
| 287 | 287 | } | |
| 288 | 288 | ||
| 289 | - | var r0 error | |
| 290 | - | if returnFunc, ok := ret.Get(0).(func(string) error); ok { | |
| 289 | + | var r0 int64 | |
| 290 | + | var r1 error | |
| 291 | + | if returnFunc, ok := ret.Get(0).(func(string) (int64, error)); ok { | |
| 292 | + | return returnFunc(digest) | |
| 293 | + | } | |
| 294 | + | if returnFunc, ok := ret.Get(0).(func(string) int64); ok { | |
| 291 | 295 | r0 = returnFunc(digest) | |
| 292 | 296 | } else { | |
| 293 | - | r0 = ret.Error(0) | |
| 297 | + | r0 = ret.Get(0).(int64) | |
| 294 | 298 | } | |
| 295 | - | return r0 | |
| 299 | + | if returnFunc, ok := ret.Get(1).(func(string) error); ok { | |
| 300 | + | r1 = returnFunc(digest) | |
| 301 | + | } else { | |
| 302 | + | r1 = ret.Error(1) | |
| 303 | + | } | |
| 304 | + | return r0, r1 | |
| 296 | 305 | } | |
| 297 | 306 | ||
| 298 | 307 | // MockBlobStorage_DeleteBlob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBlob' | |
| @@ -319,12 +328,12 @@ func (_c *MockBlobStorage_DeleteBlob_Call) Run(run func(digest string)) *MockBlo | |||
| 319 | 328 | return _c | |
| 320 | 329 | } | |
| 321 | 330 | ||
| 322 | - | func (_c *MockBlobStorage_DeleteBlob_Call) Return(err error) *MockBlobStorage_DeleteBlob_Call { | |
| 323 | - | _c.Call.Return(err) | |
| 331 | + | func (_c *MockBlobStorage_DeleteBlob_Call) Return(n int64, err error) *MockBlobStorage_DeleteBlob_Call { | |
| 332 | + | _c.Call.Return(n, err) | |
| 324 | 333 | return _c | |
| 325 | 334 | } | |
| 326 | 335 | ||
| 327 | - | func (_c *MockBlobStorage_DeleteBlob_Call) RunAndReturn(run func(digest string) error) *MockBlobStorage_DeleteBlob_Call { | |
| 336 | + | func (_c *MockBlobStorage_DeleteBlob_Call) RunAndReturn(run func(digest string) (int64, error)) *MockBlobStorage_DeleteBlob_Call { | |
| 328 | 337 | _c.Call.Return(run) | |
| 329 | 338 | return _c | |
| 330 | 339 | } | |
| @@ -279,20 +279,29 @@ func (_c *MockBlobStorage_CleanupStaleUploads_Call) RunAndReturn(run func(maxAge | |||||
| 279 | } | 279 | } | ||
| 280 | 280 | ||||
| 281 | // DeleteBlob provides a mock function for the type MockBlobStorage | 281 | // DeleteBlob provides a mock function for the type MockBlobStorage | ||
| 282 | - | func (_mock *MockBlobStorage) DeleteBlob(digest string) error { | 282 | + | func (_mock *MockBlobStorage) DeleteBlob(digest string) (int64, error) { |
| 283 | ret := _mock.Called(digest) | 283 | ret := _mock.Called(digest) | ||
| 284 | 284 | ||||
| 285 | if len(ret) == 0 { | 285 | if len(ret) == 0 { | ||
| 286 | panic("no return value specified for DeleteBlob") | 286 | panic("no return value specified for DeleteBlob") | ||
| 287 | } | 287 | } | ||
| 288 | 288 | ||||
| 289 | - | var r0 error | 289 | + | var r0 int64 |
| 290 | - | if returnFunc, ok := ret.Get(0).(func(string) error); ok { | 290 | + | var r1 error |
| 291 | + | if returnFunc, ok := ret.Get(0).(func(string) (int64, error)); ok { | |||
| 292 | + | return returnFunc(digest) | |||
| 293 | + | } | |||
| 294 | + | if returnFunc, ok := ret.Get(0).(func(string) int64); ok { | |||
| 291 | r0 = returnFunc(digest) | 295 | r0 = returnFunc(digest) | ||
| 292 | } else { | 296 | } else { | ||
| 293 | - | r0 = ret.Error(0) | 297 | + | r0 = ret.Get(0).(int64) |
| 294 | } | 298 | } | ||
| 295 | - | return r0 | 299 | + | if returnFunc, ok := ret.Get(1).(func(string) error); ok { |
| 300 | + | r1 = returnFunc(digest) | |||
| 301 | + | } else { | |||
| 302 | + | r1 = ret.Error(1) | |||
| 303 | + | } | |||
| 304 | + | return r0, r1 | |||
| 296 | } | 305 | } | ||
| 297 | 306 | ||||
| 298 | // MockBlobStorage_DeleteBlob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBlob' | 307 | // MockBlobStorage_DeleteBlob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBlob' | ||
| @@ -319,12 +328,12 @@ func (_c *MockBlobStorage_DeleteBlob_Call) Run(run func(digest string)) *MockBlo | |||||
| 319 | return _c | 328 | return _c | ||
| 320 | } | 329 | } | ||
| 321 | 330 | ||||
| 322 | - | func (_c *MockBlobStorage_DeleteBlob_Call) Return(err error) *MockBlobStorage_DeleteBlob_Call { | 331 | + | func (_c *MockBlobStorage_DeleteBlob_Call) Return(n int64, err error) *MockBlobStorage_DeleteBlob_Call { |
| 323 | - | _c.Call.Return(err) | 332 | + | _c.Call.Return(n, err) |
| 324 | return _c | 333 | return _c | ||
| 325 | } | 334 | } | ||
| 326 | 335 | ||||
| 327 | - | func (_c *MockBlobStorage_DeleteBlob_Call) RunAndReturn(run func(digest string) error) *MockBlobStorage_DeleteBlob_Call { | 336 | + | func (_c *MockBlobStorage_DeleteBlob_Call) RunAndReturn(run func(digest string) (int64, error)) *MockBlobStorage_DeleteBlob_Call { |
| 328 | _c.Call.Return(run) | 337 | _c.Call.Return(run) | ||
| 329 | return _c | 338 | return _c | ||
| 330 | } | 339 | } | ||