1// Code generated by mockery; DO NOT EDIT.
2// github.com/vektra/mockery
3// template: testify
4
5package mocks
6
7import (
8 "context"
9
10 "bnema.dev/ermite/internal/domain"
11 "bnema.dev/ermite/internal/ports"
12 mock "github.com/stretchr/testify/mock"
13)
14
15// NewCIArtifactStore creates a new instance of CIArtifactStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
16// The first argument is typically a *testing.T value.
17func NewCIArtifactStore(t interface {
18 mock.TestingT
19 Cleanup(func())
20}) *CIArtifactStore {
21 if helper, ok := t.(interface{ Helper() }); ok {
22 helper.Helper()
23 }
24
25 mock := &CIArtifactStore{}
26 mock.Mock.Test(t)
27
28 t.Cleanup(func() {
29 if helper, ok := t.(interface{ Helper() }); ok {
30 helper.Helper()
31 }
32 mock.AssertExpectations(t)
33 })
34
35 return mock
36}
37
38// CIArtifactStore is an autogenerated mock type for the CIArtifactStore type
39type CIArtifactStore struct {
40 mock.Mock
41}
42
43type CIArtifactStore_Expecter struct {
44 mock *mock.Mock
45}
46
47func (_m *CIArtifactStore) EXPECT() *CIArtifactStore_Expecter {
48 return &CIArtifactStore_Expecter{mock: &_m.Mock}
49}
50
51// AllArtifacts provides a mock function for the type CIArtifactStore
52func (_mock *CIArtifactStore) AllArtifacts(ctx context.Context) ([]domain.CIArtifact, error) {
53 ret := _mock.Called(ctx)
54
55 if len(ret) == 0 {
56 panic("no return value specified for AllArtifacts")
57 }
58
59 var r0 []domain.CIArtifact
60 var r1 error
61 if returnFunc, ok := ret.Get(0).(func(context.Context) ([]domain.CIArtifact, error)); ok {
62 return returnFunc(ctx)
63 }
64 if returnFunc, ok := ret.Get(0).(func(context.Context) []domain.CIArtifact); ok {
65 r0 = returnFunc(ctx)
66 } else {
67 if ret.Get(0) != nil {
68 r0 = ret.Get(0).([]domain.CIArtifact)
69 }
70 }
71 if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
72 r1 = returnFunc(ctx)
73 } else {
74 r1 = ret.Error(1)
75 }
76 return r0, r1
77}
78
79// CIArtifactStore_AllArtifacts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllArtifacts'
80type CIArtifactStore_AllArtifacts_Call struct {
81 *mock.Call
82}
83
84// AllArtifacts is a helper method to define mock.On call
85// - ctx context.Context
86func (_e *CIArtifactStore_Expecter) AllArtifacts(ctx any) *CIArtifactStore_AllArtifacts_Call {
87 return &CIArtifactStore_AllArtifacts_Call{Call: _e.mock.On("AllArtifacts", ctx)}
88}
89
90func (_c *CIArtifactStore_AllArtifacts_Call) Run(run func(ctx context.Context)) *CIArtifactStore_AllArtifacts_Call {
91 _c.Call.Run(func(args mock.Arguments) {
92 var arg0 context.Context
93 if args[0] != nil {
94 arg0 = args[0].(context.Context)
95 }
96 run(
97 arg0,
98 )
99 })
100 return _c
101}
102
103func (_c *CIArtifactStore_AllArtifacts_Call) Return(cIArtifacts []domain.CIArtifact, err error) *CIArtifactStore_AllArtifacts_Call {
104 _c.Call.Return(cIArtifacts, err)
105 return _c
106}
107
108func (_c *CIArtifactStore_AllArtifacts_Call) RunAndReturn(run func(ctx context.Context) ([]domain.CIArtifact, error)) *CIArtifactStore_AllArtifacts_Call {
109 _c.Call.Return(run)
110 return _c
111}
112
113// ApplyArtifacts provides a mock function for the type CIArtifactStore
114func (_mock *CIArtifactStore) ApplyArtifacts(ctx context.Context, w ports.CIArtifactWrite) error {
115 ret := _mock.Called(ctx, w)
116
117 if len(ret) == 0 {
118 panic("no return value specified for ApplyArtifacts")
119 }
120
121 var r0 error
122 if returnFunc, ok := ret.Get(0).(func(context.Context, ports.CIArtifactWrite) error); ok {
123 r0 = returnFunc(ctx, w)
124 } else {
125 r0 = ret.Error(0)
126 }
127 return r0
128}
129
130// CIArtifactStore_ApplyArtifacts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyArtifacts'
131type CIArtifactStore_ApplyArtifacts_Call struct {
132 *mock.Call
133}
134
135// ApplyArtifacts is a helper method to define mock.On call
136// - ctx context.Context
137// - w ports.CIArtifactWrite
138func (_e *CIArtifactStore_Expecter) ApplyArtifacts(ctx any, w any) *CIArtifactStore_ApplyArtifacts_Call {
139 return &CIArtifactStore_ApplyArtifacts_Call{Call: _e.mock.On("ApplyArtifacts", ctx, w)}
140}
141
142func (_c *CIArtifactStore_ApplyArtifacts_Call) Run(run func(ctx context.Context, w ports.CIArtifactWrite)) *CIArtifactStore_ApplyArtifacts_Call {
143 _c.Call.Run(func(args mock.Arguments) {
144 var arg0 context.Context
145 if args[0] != nil {
146 arg0 = args[0].(context.Context)
147 }
148 var arg1 ports.CIArtifactWrite
149 if args[1] != nil {
150 arg1 = args[1].(ports.CIArtifactWrite)
151 }
152 run(
153 arg0,
154 arg1,
155 )
156 })
157 return _c
158}
159
160func (_c *CIArtifactStore_ApplyArtifacts_Call) Return(err error) *CIArtifactStore_ApplyArtifacts_Call {
161 _c.Call.Return(err)
162 return _c
163}
164
165func (_c *CIArtifactStore_ApplyArtifacts_Call) RunAndReturn(run func(ctx context.Context, w ports.CIArtifactWrite) error) *CIArtifactStore_ApplyArtifacts_Call {
166 _c.Call.Return(run)
167 return _c
168}
169
170// ArtifactBlocks provides a mock function for the type CIArtifactStore
171func (_mock *CIArtifactStore) ArtifactBlocks(ctx context.Context, id int64) ([]ports.CIArtifactBlock, error) {
172 ret := _mock.Called(ctx, id)
173
174 if len(ret) == 0 {
175 panic("no return value specified for ArtifactBlocks")
176 }
177
178 var r0 []ports.CIArtifactBlock
179 var r1 error
180 if returnFunc, ok := ret.Get(0).(func(context.Context, int64) ([]ports.CIArtifactBlock, error)); ok {
181 return returnFunc(ctx, id)
182 }
183 if returnFunc, ok := ret.Get(0).(func(context.Context, int64) []ports.CIArtifactBlock); ok {
184 r0 = returnFunc(ctx, id)
185 } else {
186 if ret.Get(0) != nil {
187 r0 = ret.Get(0).([]ports.CIArtifactBlock)
188 }
189 }
190 if returnFunc, ok := ret.Get(1).(func(context.Context, int64) error); ok {
191 r1 = returnFunc(ctx, id)
192 } else {
193 r1 = ret.Error(1)
194 }
195 return r0, r1
196}
197
198// CIArtifactStore_ArtifactBlocks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArtifactBlocks'
199type CIArtifactStore_ArtifactBlocks_Call struct {
200 *mock.Call
201}
202
203// ArtifactBlocks is a helper method to define mock.On call
204// - ctx context.Context
205// - id int64
206func (_e *CIArtifactStore_Expecter) ArtifactBlocks(ctx any, id any) *CIArtifactStore_ArtifactBlocks_Call {
207 return &CIArtifactStore_ArtifactBlocks_Call{Call: _e.mock.On("ArtifactBlocks", ctx, id)}
208}
209
210func (_c *CIArtifactStore_ArtifactBlocks_Call) Run(run func(ctx context.Context, id int64)) *CIArtifactStore_ArtifactBlocks_Call {
211 _c.Call.Run(func(args mock.Arguments) {
212 var arg0 context.Context
213 if args[0] != nil {
214 arg0 = args[0].(context.Context)
215 }
216 var arg1 int64
217 if args[1] != nil {
218 arg1 = args[1].(int64)
219 }
220 run(
221 arg0,
222 arg1,
223 )
224 })
225 return _c
226}
227
228func (_c *CIArtifactStore_ArtifactBlocks_Call) Return(cIArtifactBlocks []ports.CIArtifactBlock, err error) *CIArtifactStore_ArtifactBlocks_Call {
229 _c.Call.Return(cIArtifactBlocks, err)
230 return _c
231}
232
233func (_c *CIArtifactStore_ArtifactBlocks_Call) RunAndReturn(run func(ctx context.Context, id int64) ([]ports.CIArtifactBlock, error)) *CIArtifactStore_ArtifactBlocks_Call {
234 _c.Call.Return(run)
235 return _c
236}
237
238// ArtifactUsage provides a mock function for the type CIArtifactStore
239func (_mock *CIArtifactStore) ArtifactUsage(ctx context.Context, repo domain.RepoName) (int64, uint64, error) {
240 ret := _mock.Called(ctx, repo)
241
242 if len(ret) == 0 {
243 panic("no return value specified for ArtifactUsage")
244 }
245
246 var r0 int64
247 var r1 uint64
248 var r2 error
249 if returnFunc, ok := ret.Get(0).(func(context.Context, domain.RepoName) (int64, uint64, error)); ok {
250 return returnFunc(ctx, repo)
251 }
252 if returnFunc, ok := ret.Get(0).(func(context.Context, domain.RepoName) int64); ok {
253 r0 = returnFunc(ctx, repo)
254 } else {
255 r0 = ret.Get(0).(int64)
256 }
257 if returnFunc, ok := ret.Get(1).(func(context.Context, domain.RepoName) uint64); ok {
258 r1 = returnFunc(ctx, repo)
259 } else {
260 r1 = ret.Get(1).(uint64)
261 }
262 if returnFunc, ok := ret.Get(2).(func(context.Context, domain.RepoName) error); ok {
263 r2 = returnFunc(ctx, repo)
264 } else {
265 r2 = ret.Error(2)
266 }
267 return r0, r1, r2
268}
269
270// CIArtifactStore_ArtifactUsage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArtifactUsage'
271type CIArtifactStore_ArtifactUsage_Call struct {
272 *mock.Call
273}
274
275// ArtifactUsage is a helper method to define mock.On call
276// - ctx context.Context
277// - repo domain.RepoName
278func (_e *CIArtifactStore_Expecter) ArtifactUsage(ctx any, repo any) *CIArtifactStore_ArtifactUsage_Call {
279 return &CIArtifactStore_ArtifactUsage_Call{Call: _e.mock.On("ArtifactUsage", ctx, repo)}
280}
281
282func (_c *CIArtifactStore_ArtifactUsage_Call) Run(run func(ctx context.Context, repo domain.RepoName)) *CIArtifactStore_ArtifactUsage_Call {
283 _c.Call.Run(func(args mock.Arguments) {
284 var arg0 context.Context
285 if args[0] != nil {
286 arg0 = args[0].(context.Context)
287 }
288 var arg1 domain.RepoName
289 if args[1] != nil {
290 arg1 = args[1].(domain.RepoName)
291 }
292 run(
293 arg0,
294 arg1,
295 )
296 })
297 return _c
298}
299
300func (_c *CIArtifactStore_ArtifactUsage_Call) Return(used int64, version uint64, err error) *CIArtifactStore_ArtifactUsage_Call {
301 _c.Call.Return(used, version, err)
302 return _c
303}
304
305func (_c *CIArtifactStore_ArtifactUsage_Call) RunAndReturn(run func(ctx context.Context, repo domain.RepoName) (int64, uint64, error)) *CIArtifactStore_ArtifactUsage_Call {
306 _c.Call.Return(run)
307 return _c
308}
309
310// BlockArtifactIDs provides a mock function for the type CIArtifactStore
311func (_mock *CIArtifactStore) BlockArtifactIDs(ctx context.Context) ([]int64, error) {
312 ret := _mock.Called(ctx)
313
314 if len(ret) == 0 {
315 panic("no return value specified for BlockArtifactIDs")
316 }
317
318 var r0 []int64
319 var r1 error
320 if returnFunc, ok := ret.Get(0).(func(context.Context) ([]int64, error)); ok {
321 return returnFunc(ctx)
322 }
323 if returnFunc, ok := ret.Get(0).(func(context.Context) []int64); ok {
324 r0 = returnFunc(ctx)
325 } else {
326 if ret.Get(0) != nil {
327 r0 = ret.Get(0).([]int64)
328 }
329 }
330 if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
331 r1 = returnFunc(ctx)
332 } else {
333 r1 = ret.Error(1)
334 }
335 return r0, r1
336}
337
338// CIArtifactStore_BlockArtifactIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockArtifactIDs'
339type CIArtifactStore_BlockArtifactIDs_Call struct {
340 *mock.Call
341}
342
343// BlockArtifactIDs is a helper method to define mock.On call
344// - ctx context.Context
345func (_e *CIArtifactStore_Expecter) BlockArtifactIDs(ctx any) *CIArtifactStore_BlockArtifactIDs_Call {
346 return &CIArtifactStore_BlockArtifactIDs_Call{Call: _e.mock.On("BlockArtifactIDs", ctx)}
347}
348
349func (_c *CIArtifactStore_BlockArtifactIDs_Call) Run(run func(ctx context.Context)) *CIArtifactStore_BlockArtifactIDs_Call {
350 _c.Call.Run(func(args mock.Arguments) {
351 var arg0 context.Context
352 if args[0] != nil {
353 arg0 = args[0].(context.Context)
354 }
355 run(
356 arg0,
357 )
358 })
359 return _c
360}
361
362func (_c *CIArtifactStore_BlockArtifactIDs_Call) Return(int64s []int64, err error) *CIArtifactStore_BlockArtifactIDs_Call {
363 _c.Call.Return(int64s, err)
364 return _c
365}
366
367func (_c *CIArtifactStore_BlockArtifactIDs_Call) RunAndReturn(run func(ctx context.Context) ([]int64, error)) *CIArtifactStore_BlockArtifactIDs_Call {
368 _c.Call.Return(run)
369 return _c
370}
371
372// DeleteBlocks provides a mock function for the type CIArtifactStore
373func (_mock *CIArtifactStore) DeleteBlocks(ctx context.Context, id int64) error {
374 ret := _mock.Called(ctx, id)
375
376 if len(ret) == 0 {
377 panic("no return value specified for DeleteBlocks")
378 }
379
380 var r0 error
381 if returnFunc, ok := ret.Get(0).(func(context.Context, int64) error); ok {
382 r0 = returnFunc(ctx, id)
383 } else {
384 r0 = ret.Error(0)
385 }
386 return r0
387}
388
389// CIArtifactStore_DeleteBlocks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBlocks'
390type CIArtifactStore_DeleteBlocks_Call struct {
391 *mock.Call
392}
393
394// DeleteBlocks is a helper method to define mock.On call
395// - ctx context.Context
396// - id int64
397func (_e *CIArtifactStore_Expecter) DeleteBlocks(ctx any, id any) *CIArtifactStore_DeleteBlocks_Call {
398 return &CIArtifactStore_DeleteBlocks_Call{Call: _e.mock.On("DeleteBlocks", ctx, id)}
399}
400
401func (_c *CIArtifactStore_DeleteBlocks_Call) Run(run func(ctx context.Context, id int64)) *CIArtifactStore_DeleteBlocks_Call {
402 _c.Call.Run(func(args mock.Arguments) {
403 var arg0 context.Context
404 if args[0] != nil {
405 arg0 = args[0].(context.Context)
406 }
407 var arg1 int64
408 if args[1] != nil {
409 arg1 = args[1].(int64)
410 }
411 run(
412 arg0,
413 arg1,
414 )
415 })
416 return _c
417}
418
419func (_c *CIArtifactStore_DeleteBlocks_Call) Return(err error) *CIArtifactStore_DeleteBlocks_Call {
420 _c.Call.Return(err)
421 return _c
422}
423
424func (_c *CIArtifactStore_DeleteBlocks_Call) RunAndReturn(run func(ctx context.Context, id int64) error) *CIArtifactStore_DeleteBlocks_Call {
425 _c.Call.Return(run)
426 return _c
427}
428
429// GetArtifact provides a mock function for the type CIArtifactStore
430func (_mock *CIArtifactStore) GetArtifact(ctx context.Context, id int64) (domain.CIArtifact, error) {
431 ret := _mock.Called(ctx, id)
432
433 if len(ret) == 0 {
434 panic("no return value specified for GetArtifact")
435 }
436
437 var r0 domain.CIArtifact
438 var r1 error
439 if returnFunc, ok := ret.Get(0).(func(context.Context, int64) (domain.CIArtifact, error)); ok {
440 return returnFunc(ctx, id)
441 }
442 if returnFunc, ok := ret.Get(0).(func(context.Context, int64) domain.CIArtifact); ok {
443 r0 = returnFunc(ctx, id)
444 } else {
445 r0 = ret.Get(0).(domain.CIArtifact)
446 }
447 if returnFunc, ok := ret.Get(1).(func(context.Context, int64) error); ok {
448 r1 = returnFunc(ctx, id)
449 } else {
450 r1 = ret.Error(1)
451 }
452 return r0, r1
453}
454
455// CIArtifactStore_GetArtifact_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetArtifact'
456type CIArtifactStore_GetArtifact_Call struct {
457 *mock.Call
458}
459
460// GetArtifact is a helper method to define mock.On call
461// - ctx context.Context
462// - id int64
463func (_e *CIArtifactStore_Expecter) GetArtifact(ctx any, id any) *CIArtifactStore_GetArtifact_Call {
464 return &CIArtifactStore_GetArtifact_Call{Call: _e.mock.On("GetArtifact", ctx, id)}
465}
466
467func (_c *CIArtifactStore_GetArtifact_Call) Run(run func(ctx context.Context, id int64)) *CIArtifactStore_GetArtifact_Call {
468 _c.Call.Run(func(args mock.Arguments) {
469 var arg0 context.Context
470 if args[0] != nil {
471 arg0 = args[0].(context.Context)
472 }
473 var arg1 int64
474 if args[1] != nil {
475 arg1 = args[1].(int64)
476 }
477 run(
478 arg0,
479 arg1,
480 )
481 })
482 return _c
483}
484
485func (_c *CIArtifactStore_GetArtifact_Call) Return(cIArtifact domain.CIArtifact, err error) *CIArtifactStore_GetArtifact_Call {
486 _c.Call.Return(cIArtifact, err)
487 return _c
488}
489
490func (_c *CIArtifactStore_GetArtifact_Call) RunAndReturn(run func(ctx context.Context, id int64) (domain.CIArtifact, error)) *CIArtifactStore_GetArtifact_Call {
491 _c.Call.Return(run)
492 return _c
493}
494
495// NextArtifactID provides a mock function for the type CIArtifactStore
496func (_mock *CIArtifactStore) NextArtifactID(ctx context.Context) (int64, error) {
497 ret := _mock.Called(ctx)
498
499 if len(ret) == 0 {
500 panic("no return value specified for NextArtifactID")
501 }
502
503 var r0 int64
504 var r1 error
505 if returnFunc, ok := ret.Get(0).(func(context.Context) (int64, error)); ok {
506 return returnFunc(ctx)
507 }
508 if returnFunc, ok := ret.Get(0).(func(context.Context) int64); ok {
509 r0 = returnFunc(ctx)
510 } else {
511 r0 = ret.Get(0).(int64)
512 }
513 if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
514 r1 = returnFunc(ctx)
515 } else {
516 r1 = ret.Error(1)
517 }
518 return r0, r1
519}
520
521// CIArtifactStore_NextArtifactID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NextArtifactID'
522type CIArtifactStore_NextArtifactID_Call struct {
523 *mock.Call
524}
525
526// NextArtifactID is a helper method to define mock.On call
527// - ctx context.Context
528func (_e *CIArtifactStore_Expecter) NextArtifactID(ctx any) *CIArtifactStore_NextArtifactID_Call {
529 return &CIArtifactStore_NextArtifactID_Call{Call: _e.mock.On("NextArtifactID", ctx)}
530}
531
532func (_c *CIArtifactStore_NextArtifactID_Call) Run(run func(ctx context.Context)) *CIArtifactStore_NextArtifactID_Call {
533 _c.Call.Run(func(args mock.Arguments) {
534 var arg0 context.Context
535 if args[0] != nil {
536 arg0 = args[0].(context.Context)
537 }
538 run(
539 arg0,
540 )
541 })
542 return _c
543}
544
545func (_c *CIArtifactStore_NextArtifactID_Call) Return(n int64, err error) *CIArtifactStore_NextArtifactID_Call {
546 _c.Call.Return(n, err)
547 return _c
548}
549
550func (_c *CIArtifactStore_NextArtifactID_Call) RunAndReturn(run func(ctx context.Context) (int64, error)) *CIArtifactStore_NextArtifactID_Call {
551 _c.Call.Return(run)
552 return _c
553}
554
555// RunArtifacts provides a mock function for the type CIArtifactStore
556func (_mock *CIArtifactStore) RunArtifacts(ctx context.Context, repo domain.RepoName, runID int64) ([]domain.CIArtifact, error) {
557 ret := _mock.Called(ctx, repo, runID)
558
559 if len(ret) == 0 {
560 panic("no return value specified for RunArtifacts")
561 }
562
563 var r0 []domain.CIArtifact
564 var r1 error
565 if returnFunc, ok := ret.Get(0).(func(context.Context, domain.RepoName, int64) ([]domain.CIArtifact, error)); ok {
566 return returnFunc(ctx, repo, runID)
567 }
568 if returnFunc, ok := ret.Get(0).(func(context.Context, domain.RepoName, int64) []domain.CIArtifact); ok {
569 r0 = returnFunc(ctx, repo, runID)
570 } else {
571 if ret.Get(0) != nil {
572 r0 = ret.Get(0).([]domain.CIArtifact)
573 }
574 }
575 if returnFunc, ok := ret.Get(1).(func(context.Context, domain.RepoName, int64) error); ok {
576 r1 = returnFunc(ctx, repo, runID)
577 } else {
578 r1 = ret.Error(1)
579 }
580 return r0, r1
581}
582
583// CIArtifactStore_RunArtifacts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunArtifacts'
584type CIArtifactStore_RunArtifacts_Call struct {
585 *mock.Call
586}
587
588// RunArtifacts is a helper method to define mock.On call
589// - ctx context.Context
590// - repo domain.RepoName
591// - runID int64
592func (_e *CIArtifactStore_Expecter) RunArtifacts(ctx any, repo any, runID any) *CIArtifactStore_RunArtifacts_Call {
593 return &CIArtifactStore_RunArtifacts_Call{Call: _e.mock.On("RunArtifacts", ctx, repo, runID)}
594}
595
596func (_c *CIArtifactStore_RunArtifacts_Call) Run(run func(ctx context.Context, repo domain.RepoName, runID int64)) *CIArtifactStore_RunArtifacts_Call {
597 _c.Call.Run(func(args mock.Arguments) {
598 var arg0 context.Context
599 if args[0] != nil {
600 arg0 = args[0].(context.Context)
601 }
602 var arg1 domain.RepoName
603 if args[1] != nil {
604 arg1 = args[1].(domain.RepoName)
605 }
606 var arg2 int64
607 if args[2] != nil {
608 arg2 = args[2].(int64)
609 }
610 run(
611 arg0,
612 arg1,
613 arg2,
614 )
615 })
616 return _c
617}
618
619func (_c *CIArtifactStore_RunArtifacts_Call) Return(cIArtifacts []domain.CIArtifact, err error) *CIArtifactStore_RunArtifacts_Call {
620 _c.Call.Return(cIArtifacts, err)
621 return _c
622}
623
624func (_c *CIArtifactStore_RunArtifacts_Call) RunAndReturn(run func(ctx context.Context, repo domain.RepoName, runID int64) ([]domain.CIArtifact, error)) *CIArtifactStore_RunArtifacts_Call {
625 _c.Call.Return(run)
626 return _c
627}