detached 83e495f

JobArtifactService.go RawHistoryFolder

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

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 4

Tags 45

↑↓ moveenter openesc close