v0.6.0 d5cc8fe

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

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