detached f5d3652

chore: regenerate mockery mocks for updated DeleteBlob signature

commit
f5d3652f7afc5bf63034b1ea0c429125101d1693
author
brice · · 2026-03-27 18:36 UTC
parent
ae1a7a4
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · 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
279279 }
280280
281281 // 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) {
283283 ret := _mock.Called(digest)
284284
285285 if len(ret) == 0 {
286286 panic("no return value specified for DeleteBlob")
287287 }
288288
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 {
291295 r0 = returnFunc(digest)
292296 } else {
293- r0 = ret.Error(0)
297+ r0 = ret.Get(0).(int64)
294298 }
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
296305 }
297306
298307 // 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
319328 return _c
320329 }
321330
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)
324333 return _c
325334 }
326335
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 {
328337 _c.Call.Return(run)
329338 return _c
330339 }
@@ -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 MockBlobStorage281 // 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 error289+ 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 r0299+ 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 _c328 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 _c333 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 _c338 return _c
330 }339 }

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 7

Tags 106

↑↓ moveenter openesc close