forked from harness/gitness
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock_gen.go
2702 lines (2302 loc) · 92.5 KB
/
mock_gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/drone/drone/core (interfaces: Pubsub,Canceler,ConvertService,ValidateService,NetrcService,Renewer,HookParser,UserService,RepositoryService,CommitService,StatusService,HookService,FileService,Batcher,BuildStore,CronStore,LogStore,PermStore,SecretStore,GlobalSecretStore,StageStore,StepStore,RepositoryStore,UserStore,Scheduler,Session,OrganizationService,SecretService,RegistryService,ConfigService,Triggerer,Syncer,LogStream,WebhookSender,LicenseService)
// Package mock is a generated GoMock package.
package mock
import (
context "context"
core "github.com/drone/drone/core"
gomock "github.com/golang/mock/gomock"
io "io"
http "net/http"
reflect "reflect"
)
// MockPubsub is a mock of Pubsub interface
type MockPubsub struct {
ctrl *gomock.Controller
recorder *MockPubsubMockRecorder
}
// MockPubsubMockRecorder is the mock recorder for MockPubsub
type MockPubsubMockRecorder struct {
mock *MockPubsub
}
// NewMockPubsub creates a new mock instance
func NewMockPubsub(ctrl *gomock.Controller) *MockPubsub {
mock := &MockPubsub{ctrl: ctrl}
mock.recorder = &MockPubsubMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockPubsub) EXPECT() *MockPubsubMockRecorder {
return m.recorder
}
// Publish mocks base method
func (m *MockPubsub) Publish(arg0 context.Context, arg1 *core.Message) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Publish", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// Publish indicates an expected call of Publish
func (mr *MockPubsubMockRecorder) Publish(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Publish", reflect.TypeOf((*MockPubsub)(nil).Publish), arg0, arg1)
}
// Subscribe mocks base method
func (m *MockPubsub) Subscribe(arg0 context.Context) (<-chan *core.Message, <-chan error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Subscribe", arg0)
ret0, _ := ret[0].(<-chan *core.Message)
ret1, _ := ret[1].(<-chan error)
return ret0, ret1
}
// Subscribe indicates an expected call of Subscribe
func (mr *MockPubsubMockRecorder) Subscribe(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Subscribe", reflect.TypeOf((*MockPubsub)(nil).Subscribe), arg0)
}
// Subscribers mocks base method
func (m *MockPubsub) Subscribers() int {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Subscribers")
ret0, _ := ret[0].(int)
return ret0
}
// Subscribers indicates an expected call of Subscribers
func (mr *MockPubsubMockRecorder) Subscribers() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Subscribers", reflect.TypeOf((*MockPubsub)(nil).Subscribers))
}
// MockCanceler is a mock of Canceler interface
type MockCanceler struct {
ctrl *gomock.Controller
recorder *MockCancelerMockRecorder
}
// MockCancelerMockRecorder is the mock recorder for MockCanceler
type MockCancelerMockRecorder struct {
mock *MockCanceler
}
// NewMockCanceler creates a new mock instance
func NewMockCanceler(ctrl *gomock.Controller) *MockCanceler {
mock := &MockCanceler{ctrl: ctrl}
mock.recorder = &MockCancelerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockCanceler) EXPECT() *MockCancelerMockRecorder {
return m.recorder
}
// Cancel mocks base method
func (m *MockCanceler) Cancel(arg0 context.Context, arg1 *core.Repository, arg2 *core.Build) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Cancel", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// Cancel indicates an expected call of Cancel
func (mr *MockCancelerMockRecorder) Cancel(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cancel", reflect.TypeOf((*MockCanceler)(nil).Cancel), arg0, arg1, arg2)
}
// CancelPending mocks base method
func (m *MockCanceler) CancelPending(arg0 context.Context, arg1 *core.Repository, arg2 *core.Build) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CancelPending", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// CancelPending indicates an expected call of CancelPending
func (mr *MockCancelerMockRecorder) CancelPending(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelPending", reflect.TypeOf((*MockCanceler)(nil).CancelPending), arg0, arg1, arg2)
}
// MockConvertService is a mock of ConvertService interface
type MockConvertService struct {
ctrl *gomock.Controller
recorder *MockConvertServiceMockRecorder
}
// MockConvertServiceMockRecorder is the mock recorder for MockConvertService
type MockConvertServiceMockRecorder struct {
mock *MockConvertService
}
// NewMockConvertService creates a new mock instance
func NewMockConvertService(ctrl *gomock.Controller) *MockConvertService {
mock := &MockConvertService{ctrl: ctrl}
mock.recorder = &MockConvertServiceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockConvertService) EXPECT() *MockConvertServiceMockRecorder {
return m.recorder
}
// Convert mocks base method
func (m *MockConvertService) Convert(arg0 context.Context, arg1 *core.ConvertArgs) (*core.Config, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Convert", arg0, arg1)
ret0, _ := ret[0].(*core.Config)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Convert indicates an expected call of Convert
func (mr *MockConvertServiceMockRecorder) Convert(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Convert", reflect.TypeOf((*MockConvertService)(nil).Convert), arg0, arg1)
}
// MockValidateService is a mock of ValidateService interface
type MockValidateService struct {
ctrl *gomock.Controller
recorder *MockValidateServiceMockRecorder
}
// MockValidateServiceMockRecorder is the mock recorder for MockValidateService
type MockValidateServiceMockRecorder struct {
mock *MockValidateService
}
// NewMockValidateService creates a new mock instance
func NewMockValidateService(ctrl *gomock.Controller) *MockValidateService {
mock := &MockValidateService{ctrl: ctrl}
mock.recorder = &MockValidateServiceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockValidateService) EXPECT() *MockValidateServiceMockRecorder {
return m.recorder
}
// Validate mocks base method
func (m *MockValidateService) Validate(arg0 context.Context, arg1 *core.ValidateArgs) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Validate", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// Validate indicates an expected call of Validate
func (mr *MockValidateServiceMockRecorder) Validate(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validate", reflect.TypeOf((*MockValidateService)(nil).Validate), arg0, arg1)
}
// MockNetrcService is a mock of NetrcService interface
type MockNetrcService struct {
ctrl *gomock.Controller
recorder *MockNetrcServiceMockRecorder
}
// MockNetrcServiceMockRecorder is the mock recorder for MockNetrcService
type MockNetrcServiceMockRecorder struct {
mock *MockNetrcService
}
// NewMockNetrcService creates a new mock instance
func NewMockNetrcService(ctrl *gomock.Controller) *MockNetrcService {
mock := &MockNetrcService{ctrl: ctrl}
mock.recorder = &MockNetrcServiceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockNetrcService) EXPECT() *MockNetrcServiceMockRecorder {
return m.recorder
}
// Create mocks base method
func (m *MockNetrcService) Create(arg0 context.Context, arg1 *core.User, arg2 *core.Repository) (*core.Netrc, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2)
ret0, _ := ret[0].(*core.Netrc)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Create indicates an expected call of Create
func (mr *MockNetrcServiceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockNetrcService)(nil).Create), arg0, arg1, arg2)
}
// MockRenewer is a mock of Renewer interface
type MockRenewer struct {
ctrl *gomock.Controller
recorder *MockRenewerMockRecorder
}
// MockRenewerMockRecorder is the mock recorder for MockRenewer
type MockRenewerMockRecorder struct {
mock *MockRenewer
}
// NewMockRenewer creates a new mock instance
func NewMockRenewer(ctrl *gomock.Controller) *MockRenewer {
mock := &MockRenewer{ctrl: ctrl}
mock.recorder = &MockRenewerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockRenewer) EXPECT() *MockRenewerMockRecorder {
return m.recorder
}
// Renew mocks base method
func (m *MockRenewer) Renew(arg0 context.Context, arg1 *core.User, arg2 bool) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Renew", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// Renew indicates an expected call of Renew
func (mr *MockRenewerMockRecorder) Renew(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Renew", reflect.TypeOf((*MockRenewer)(nil).Renew), arg0, arg1, arg2)
}
// MockHookParser is a mock of HookParser interface
type MockHookParser struct {
ctrl *gomock.Controller
recorder *MockHookParserMockRecorder
}
// MockHookParserMockRecorder is the mock recorder for MockHookParser
type MockHookParserMockRecorder struct {
mock *MockHookParser
}
// NewMockHookParser creates a new mock instance
func NewMockHookParser(ctrl *gomock.Controller) *MockHookParser {
mock := &MockHookParser{ctrl: ctrl}
mock.recorder = &MockHookParserMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockHookParser) EXPECT() *MockHookParserMockRecorder {
return m.recorder
}
// Parse mocks base method
func (m *MockHookParser) Parse(arg0 *http.Request, arg1 func(string) string) (*core.Hook, *core.Repository, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Parse", arg0, arg1)
ret0, _ := ret[0].(*core.Hook)
ret1, _ := ret[1].(*core.Repository)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// Parse indicates an expected call of Parse
func (mr *MockHookParserMockRecorder) Parse(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Parse", reflect.TypeOf((*MockHookParser)(nil).Parse), arg0, arg1)
}
// MockUserService is a mock of UserService interface
type MockUserService struct {
ctrl *gomock.Controller
recorder *MockUserServiceMockRecorder
}
// MockUserServiceMockRecorder is the mock recorder for MockUserService
type MockUserServiceMockRecorder struct {
mock *MockUserService
}
// NewMockUserService creates a new mock instance
func NewMockUserService(ctrl *gomock.Controller) *MockUserService {
mock := &MockUserService{ctrl: ctrl}
mock.recorder = &MockUserServiceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockUserService) EXPECT() *MockUserServiceMockRecorder {
return m.recorder
}
// Find mocks base method
func (m *MockUserService) Find(arg0 context.Context, arg1, arg2 string) (*core.User, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Find", arg0, arg1, arg2)
ret0, _ := ret[0].(*core.User)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Find indicates an expected call of Find
func (mr *MockUserServiceMockRecorder) Find(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Find", reflect.TypeOf((*MockUserService)(nil).Find), arg0, arg1, arg2)
}
// FindLogin mocks base method
func (m *MockUserService) FindLogin(arg0 context.Context, arg1 *core.User, arg2 string) (*core.User, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "FindLogin", arg0, arg1, arg2)
ret0, _ := ret[0].(*core.User)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// FindLogin indicates an expected call of FindLogin
func (mr *MockUserServiceMockRecorder) FindLogin(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindLogin", reflect.TypeOf((*MockUserService)(nil).FindLogin), arg0, arg1, arg2)
}
// MockRepositoryService is a mock of RepositoryService interface
type MockRepositoryService struct {
ctrl *gomock.Controller
recorder *MockRepositoryServiceMockRecorder
}
// MockRepositoryServiceMockRecorder is the mock recorder for MockRepositoryService
type MockRepositoryServiceMockRecorder struct {
mock *MockRepositoryService
}
// NewMockRepositoryService creates a new mock instance
func NewMockRepositoryService(ctrl *gomock.Controller) *MockRepositoryService {
mock := &MockRepositoryService{ctrl: ctrl}
mock.recorder = &MockRepositoryServiceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockRepositoryService) EXPECT() *MockRepositoryServiceMockRecorder {
return m.recorder
}
// Find mocks base method
func (m *MockRepositoryService) Find(arg0 context.Context, arg1 *core.User, arg2 string) (*core.Repository, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Find", arg0, arg1, arg2)
ret0, _ := ret[0].(*core.Repository)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Find indicates an expected call of Find
func (mr *MockRepositoryServiceMockRecorder) Find(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Find", reflect.TypeOf((*MockRepositoryService)(nil).Find), arg0, arg1, arg2)
}
// FindPerm mocks base method
func (m *MockRepositoryService) FindPerm(arg0 context.Context, arg1 *core.User, arg2 string) (*core.Perm, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "FindPerm", arg0, arg1, arg2)
ret0, _ := ret[0].(*core.Perm)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// FindPerm indicates an expected call of FindPerm
func (mr *MockRepositoryServiceMockRecorder) FindPerm(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindPerm", reflect.TypeOf((*MockRepositoryService)(nil).FindPerm), arg0, arg1, arg2)
}
// List mocks base method
func (m *MockRepositoryService) List(arg0 context.Context, arg1 *core.User) ([]*core.Repository, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "List", arg0, arg1)
ret0, _ := ret[0].([]*core.Repository)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// List indicates an expected call of List
func (mr *MockRepositoryServiceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockRepositoryService)(nil).List), arg0, arg1)
}
// MockCommitService is a mock of CommitService interface
type MockCommitService struct {
ctrl *gomock.Controller
recorder *MockCommitServiceMockRecorder
}
// MockCommitServiceMockRecorder is the mock recorder for MockCommitService
type MockCommitServiceMockRecorder struct {
mock *MockCommitService
}
// NewMockCommitService creates a new mock instance
func NewMockCommitService(ctrl *gomock.Controller) *MockCommitService {
mock := &MockCommitService{ctrl: ctrl}
mock.recorder = &MockCommitServiceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockCommitService) EXPECT() *MockCommitServiceMockRecorder {
return m.recorder
}
// Find mocks base method
func (m *MockCommitService) Find(arg0 context.Context, arg1 *core.User, arg2, arg3 string) (*core.Commit, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Find", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(*core.Commit)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Find indicates an expected call of Find
func (mr *MockCommitServiceMockRecorder) Find(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Find", reflect.TypeOf((*MockCommitService)(nil).Find), arg0, arg1, arg2, arg3)
}
// FindRef mocks base method
func (m *MockCommitService) FindRef(arg0 context.Context, arg1 *core.User, arg2, arg3 string) (*core.Commit, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "FindRef", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(*core.Commit)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// FindRef indicates an expected call of FindRef
func (mr *MockCommitServiceMockRecorder) FindRef(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindRef", reflect.TypeOf((*MockCommitService)(nil).FindRef), arg0, arg1, arg2, arg3)
}
// ListChanges mocks base method
func (m *MockCommitService) ListChanges(arg0 context.Context, arg1 *core.User, arg2, arg3, arg4 string) ([]*core.Change, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListChanges", arg0, arg1, arg2, arg3, arg4)
ret0, _ := ret[0].([]*core.Change)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListChanges indicates an expected call of ListChanges
func (mr *MockCommitServiceMockRecorder) ListChanges(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListChanges", reflect.TypeOf((*MockCommitService)(nil).ListChanges), arg0, arg1, arg2, arg3, arg4)
}
// MockStatusService is a mock of StatusService interface
type MockStatusService struct {
ctrl *gomock.Controller
recorder *MockStatusServiceMockRecorder
}
// MockStatusServiceMockRecorder is the mock recorder for MockStatusService
type MockStatusServiceMockRecorder struct {
mock *MockStatusService
}
// NewMockStatusService creates a new mock instance
func NewMockStatusService(ctrl *gomock.Controller) *MockStatusService {
mock := &MockStatusService{ctrl: ctrl}
mock.recorder = &MockStatusServiceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockStatusService) EXPECT() *MockStatusServiceMockRecorder {
return m.recorder
}
// Send mocks base method
func (m *MockStatusService) Send(arg0 context.Context, arg1 *core.User, arg2 *core.StatusInput) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Send", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// Send indicates an expected call of Send
func (mr *MockStatusServiceMockRecorder) Send(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockStatusService)(nil).Send), arg0, arg1, arg2)
}
// MockHookService is a mock of HookService interface
type MockHookService struct {
ctrl *gomock.Controller
recorder *MockHookServiceMockRecorder
}
// MockHookServiceMockRecorder is the mock recorder for MockHookService
type MockHookServiceMockRecorder struct {
mock *MockHookService
}
// NewMockHookService creates a new mock instance
func NewMockHookService(ctrl *gomock.Controller) *MockHookService {
mock := &MockHookService{ctrl: ctrl}
mock.recorder = &MockHookServiceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockHookService) EXPECT() *MockHookServiceMockRecorder {
return m.recorder
}
// Create mocks base method
func (m *MockHookService) Create(arg0 context.Context, arg1 *core.User, arg2 *core.Repository) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// Create indicates an expected call of Create
func (mr *MockHookServiceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockHookService)(nil).Create), arg0, arg1, arg2)
}
// Delete mocks base method
func (m *MockHookService) Delete(arg0 context.Context, arg1 *core.User, arg2 *core.Repository) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// Delete indicates an expected call of Delete
func (mr *MockHookServiceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockHookService)(nil).Delete), arg0, arg1, arg2)
}
// MockFileService is a mock of FileService interface
type MockFileService struct {
ctrl *gomock.Controller
recorder *MockFileServiceMockRecorder
}
// MockFileServiceMockRecorder is the mock recorder for MockFileService
type MockFileServiceMockRecorder struct {
mock *MockFileService
}
// NewMockFileService creates a new mock instance
func NewMockFileService(ctrl *gomock.Controller) *MockFileService {
mock := &MockFileService{ctrl: ctrl}
mock.recorder = &MockFileServiceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockFileService) EXPECT() *MockFileServiceMockRecorder {
return m.recorder
}
// Find mocks base method
func (m *MockFileService) Find(arg0 context.Context, arg1 *core.User, arg2, arg3, arg4, arg5 string) (*core.File, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Find", arg0, arg1, arg2, arg3, arg4, arg5)
ret0, _ := ret[0].(*core.File)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Find indicates an expected call of Find
func (mr *MockFileServiceMockRecorder) Find(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Find", reflect.TypeOf((*MockFileService)(nil).Find), arg0, arg1, arg2, arg3, arg4, arg5)
}
// MockBatcher is a mock of Batcher interface
type MockBatcher struct {
ctrl *gomock.Controller
recorder *MockBatcherMockRecorder
}
// MockBatcherMockRecorder is the mock recorder for MockBatcher
type MockBatcherMockRecorder struct {
mock *MockBatcher
}
// NewMockBatcher creates a new mock instance
func NewMockBatcher(ctrl *gomock.Controller) *MockBatcher {
mock := &MockBatcher{ctrl: ctrl}
mock.recorder = &MockBatcherMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockBatcher) EXPECT() *MockBatcherMockRecorder {
return m.recorder
}
// Batch mocks base method
func (m *MockBatcher) Batch(arg0 context.Context, arg1 *core.User, arg2 *core.Batch) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Batch", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// Batch indicates an expected call of Batch
func (mr *MockBatcherMockRecorder) Batch(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Batch", reflect.TypeOf((*MockBatcher)(nil).Batch), arg0, arg1, arg2)
}
// MockBuildStore is a mock of BuildStore interface
type MockBuildStore struct {
ctrl *gomock.Controller
recorder *MockBuildStoreMockRecorder
}
// MockBuildStoreMockRecorder is the mock recorder for MockBuildStore
type MockBuildStoreMockRecorder struct {
mock *MockBuildStore
}
// NewMockBuildStore creates a new mock instance
func NewMockBuildStore(ctrl *gomock.Controller) *MockBuildStore {
mock := &MockBuildStore{ctrl: ctrl}
mock.recorder = &MockBuildStoreMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockBuildStore) EXPECT() *MockBuildStoreMockRecorder {
return m.recorder
}
// Count mocks base method
func (m *MockBuildStore) Count(arg0 context.Context) (int64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Count", arg0)
ret0, _ := ret[0].(int64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Count indicates an expected call of Count
func (mr *MockBuildStoreMockRecorder) Count(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Count", reflect.TypeOf((*MockBuildStore)(nil).Count), arg0)
}
// Create mocks base method
func (m *MockBuildStore) Create(arg0 context.Context, arg1 *core.Build, arg2 []*core.Stage) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// Create indicates an expected call of Create
func (mr *MockBuildStoreMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockBuildStore)(nil).Create), arg0, arg1, arg2)
}
// Delete mocks base method
func (m *MockBuildStore) Delete(arg0 context.Context, arg1 *core.Build) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Delete", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// Delete indicates an expected call of Delete
func (mr *MockBuildStoreMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockBuildStore)(nil).Delete), arg0, arg1)
}
// DeleteBranch mocks base method
func (m *MockBuildStore) DeleteBranch(arg0 context.Context, arg1 int64, arg2 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteBranch", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteBranch indicates an expected call of DeleteBranch
func (mr *MockBuildStoreMockRecorder) DeleteBranch(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBranch", reflect.TypeOf((*MockBuildStore)(nil).DeleteBranch), arg0, arg1, arg2)
}
// DeleteDeploy mocks base method
func (m *MockBuildStore) DeleteDeploy(arg0 context.Context, arg1 int64, arg2 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteDeploy", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteDeploy indicates an expected call of DeleteDeploy
func (mr *MockBuildStoreMockRecorder) DeleteDeploy(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDeploy", reflect.TypeOf((*MockBuildStore)(nil).DeleteDeploy), arg0, arg1, arg2)
}
// DeletePull mocks base method
func (m *MockBuildStore) DeletePull(arg0 context.Context, arg1 int64, arg2 int) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeletePull", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// DeletePull indicates an expected call of DeletePull
func (mr *MockBuildStoreMockRecorder) DeletePull(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePull", reflect.TypeOf((*MockBuildStore)(nil).DeletePull), arg0, arg1, arg2)
}
// Find mocks base method
func (m *MockBuildStore) Find(arg0 context.Context, arg1 int64) (*core.Build, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Find", arg0, arg1)
ret0, _ := ret[0].(*core.Build)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Find indicates an expected call of Find
func (mr *MockBuildStoreMockRecorder) Find(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Find", reflect.TypeOf((*MockBuildStore)(nil).Find), arg0, arg1)
}
// FindNumber mocks base method
func (m *MockBuildStore) FindNumber(arg0 context.Context, arg1, arg2 int64) (*core.Build, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "FindNumber", arg0, arg1, arg2)
ret0, _ := ret[0].(*core.Build)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// FindNumber indicates an expected call of FindNumber
func (mr *MockBuildStoreMockRecorder) FindNumber(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindNumber", reflect.TypeOf((*MockBuildStore)(nil).FindNumber), arg0, arg1, arg2)
}
// FindRef mocks base method
func (m *MockBuildStore) FindRef(arg0 context.Context, arg1 int64, arg2 string) (*core.Build, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "FindRef", arg0, arg1, arg2)
ret0, _ := ret[0].(*core.Build)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// FindRef indicates an expected call of FindRef
func (mr *MockBuildStoreMockRecorder) FindRef(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindRef", reflect.TypeOf((*MockBuildStore)(nil).FindRef), arg0, arg1, arg2)
}
// LatestBranches mocks base method
func (m *MockBuildStore) LatestBranches(arg0 context.Context, arg1 int64) ([]*core.Build, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "LatestBranches", arg0, arg1)
ret0, _ := ret[0].([]*core.Build)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// LatestBranches indicates an expected call of LatestBranches
func (mr *MockBuildStoreMockRecorder) LatestBranches(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LatestBranches", reflect.TypeOf((*MockBuildStore)(nil).LatestBranches), arg0, arg1)
}
// LatestDeploys mocks base method
func (m *MockBuildStore) LatestDeploys(arg0 context.Context, arg1 int64) ([]*core.Build, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "LatestDeploys", arg0, arg1)
ret0, _ := ret[0].([]*core.Build)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// LatestDeploys indicates an expected call of LatestDeploys
func (mr *MockBuildStoreMockRecorder) LatestDeploys(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LatestDeploys", reflect.TypeOf((*MockBuildStore)(nil).LatestDeploys), arg0, arg1)
}
// LatestPulls mocks base method
func (m *MockBuildStore) LatestPulls(arg0 context.Context, arg1 int64) ([]*core.Build, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "LatestPulls", arg0, arg1)
ret0, _ := ret[0].([]*core.Build)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// LatestPulls indicates an expected call of LatestPulls
func (mr *MockBuildStoreMockRecorder) LatestPulls(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LatestPulls", reflect.TypeOf((*MockBuildStore)(nil).LatestPulls), arg0, arg1)
}
// List mocks base method
func (m *MockBuildStore) List(arg0 context.Context, arg1 int64, arg2, arg3 int) ([]*core.Build, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "List", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].([]*core.Build)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// List indicates an expected call of List
func (mr *MockBuildStoreMockRecorder) List(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockBuildStore)(nil).List), arg0, arg1, arg2, arg3)
}
// ListRef mocks base method
func (m *MockBuildStore) ListRef(arg0 context.Context, arg1 int64, arg2 string, arg3, arg4 int) ([]*core.Build, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListRef", arg0, arg1, arg2, arg3, arg4)
ret0, _ := ret[0].([]*core.Build)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListRef indicates an expected call of ListRef
func (mr *MockBuildStoreMockRecorder) ListRef(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRef", reflect.TypeOf((*MockBuildStore)(nil).ListRef), arg0, arg1, arg2, arg3, arg4)
}
// Pending mocks base method
func (m *MockBuildStore) Pending(arg0 context.Context) ([]*core.Build, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Pending", arg0)
ret0, _ := ret[0].([]*core.Build)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Pending indicates an expected call of Pending
func (mr *MockBuildStoreMockRecorder) Pending(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Pending", reflect.TypeOf((*MockBuildStore)(nil).Pending), arg0)
}
// Purge mocks base method
func (m *MockBuildStore) Purge(arg0 context.Context, arg1, arg2 int64) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Purge", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// Purge indicates an expected call of Purge
func (mr *MockBuildStoreMockRecorder) Purge(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Purge", reflect.TypeOf((*MockBuildStore)(nil).Purge), arg0, arg1, arg2)
}
// Running mocks base method
func (m *MockBuildStore) Running(arg0 context.Context) ([]*core.Build, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Running", arg0)
ret0, _ := ret[0].([]*core.Build)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Running indicates an expected call of Running
func (mr *MockBuildStoreMockRecorder) Running(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Running", reflect.TypeOf((*MockBuildStore)(nil).Running), arg0)
}
// Update mocks base method
func (m *MockBuildStore) Update(arg0 context.Context, arg1 *core.Build) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Update", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// Update indicates an expected call of Update
func (mr *MockBuildStoreMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockBuildStore)(nil).Update), arg0, arg1)
}
// MockCronStore is a mock of CronStore interface
type MockCronStore struct {
ctrl *gomock.Controller
recorder *MockCronStoreMockRecorder
}
// MockCronStoreMockRecorder is the mock recorder for MockCronStore
type MockCronStoreMockRecorder struct {
mock *MockCronStore
}
// NewMockCronStore creates a new mock instance
func NewMockCronStore(ctrl *gomock.Controller) *MockCronStore {
mock := &MockCronStore{ctrl: ctrl}
mock.recorder = &MockCronStoreMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockCronStore) EXPECT() *MockCronStoreMockRecorder {
return m.recorder
}
// Create mocks base method
func (m *MockCronStore) Create(arg0 context.Context, arg1 *core.Cron) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Create", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// Create indicates an expected call of Create
func (mr *MockCronStoreMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockCronStore)(nil).Create), arg0, arg1)
}
// Delete mocks base method
func (m *MockCronStore) Delete(arg0 context.Context, arg1 *core.Cron) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Delete", arg0, arg1)