v0.36.0 1fb2421

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

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