-
Notifications
You must be signed in to change notification settings - Fork 311
/
mock_service.go
140 lines (117 loc) · 4.38 KB
/
mock_service.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
// Code generated by MockGen. DO NOT EDIT.
// Source: service.go
// Package service is a generated GoMock package.
package service
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
model "github.com/rudderlabs/rudder-server/regulation-worker/internal/model"
)
// MockAPIClient is a mock of APIClient interface.
type MockAPIClient struct {
ctrl *gomock.Controller
recorder *MockAPIClientMockRecorder
}
// MockAPIClientMockRecorder is the mock recorder for MockAPIClient.
type MockAPIClientMockRecorder struct {
mock *MockAPIClient
}
// NewMockAPIClient creates a new mock instance.
func NewMockAPIClient(ctrl *gomock.Controller) *MockAPIClient {
mock := &MockAPIClient{ctrl: ctrl}
mock.recorder = &MockAPIClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockAPIClient) EXPECT() *MockAPIClientMockRecorder {
return m.recorder
}
// Get mocks base method.
func (m *MockAPIClient) Get(ctx context.Context) (model.Job, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Get", ctx)
ret0, _ := ret[0].(model.Job)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Get indicates an expected call of Get.
func (mr *MockAPIClientMockRecorder) Get(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockAPIClient)(nil).Get), ctx)
}
// UpdateStatus mocks base method.
func (m *MockAPIClient) UpdateStatus(ctx context.Context, status model.JobStatus, jobID int) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpdateStatus", ctx, status, jobID)
ret0, _ := ret[0].(error)
return ret0
}
// UpdateStatus indicates an expected call of UpdateStatus.
func (mr *MockAPIClientMockRecorder) UpdateStatus(ctx, status, jobID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockAPIClient)(nil).UpdateStatus), ctx, status, jobID)
}
// MockdestDetail is a mock of destDetail interface.
type MockdestDetail struct {
ctrl *gomock.Controller
recorder *MockdestDetailMockRecorder
}
// MockdestDetailMockRecorder is the mock recorder for MockdestDetail.
type MockdestDetailMockRecorder struct {
mock *MockdestDetail
}
// NewMockdestDetail creates a new mock instance.
func NewMockdestDetail(ctrl *gomock.Controller) *MockdestDetail {
mock := &MockdestDetail{ctrl: ctrl}
mock.recorder = &MockdestDetailMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockdestDetail) EXPECT() *MockdestDetailMockRecorder {
return m.recorder
}
// GetDestDetails mocks base method.
func (m *MockdestDetail) GetDestDetails(destID string) (model.Destination, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetDestDetails", destID)
ret0, _ := ret[0].(model.Destination)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetDestDetails indicates an expected call of GetDestDetails.
func (mr *MockdestDetailMockRecorder) GetDestDetails(destID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDestDetails", reflect.TypeOf((*MockdestDetail)(nil).GetDestDetails), destID)
}
// Mockdeleter is a mock of deleter interface.
type Mockdeleter struct {
ctrl *gomock.Controller
recorder *MockdeleterMockRecorder
}
// MockdeleterMockRecorder is the mock recorder for Mockdeleter.
type MockdeleterMockRecorder struct {
mock *Mockdeleter
}
// NewMockdeleter creates a new mock instance.
func NewMockdeleter(ctrl *gomock.Controller) *Mockdeleter {
mock := &Mockdeleter{ctrl: ctrl}
mock.recorder = &MockdeleterMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *Mockdeleter) EXPECT() *MockdeleterMockRecorder {
return m.recorder
}
// Delete mocks base method.
func (m *Mockdeleter) Delete(ctx context.Context, job model.Job, destDetail model.Destination) model.JobStatus {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Delete", ctx, job, destDetail)
ret0, _ := ret[0].(model.JobStatus)
return ret0
}
// Delete indicates an expected call of Delete.
func (mr *MockdeleterMockRecorder) Delete(ctx, job, destDetail interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*Mockdeleter)(nil).Delete), ctx, job, destDetail)
}