-
Notifications
You must be signed in to change notification settings - Fork 317
/
mock_workspaceconfig.go
224 lines (189 loc) · 7.33 KB
/
mock_workspaceconfig.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
// Code generated by MockGen. DO NOT EDIT.
// Source: ./backend-config.go
// Package backendconfig is a generated GoMock package.
package backendconfig
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
identity "github.com/rudderlabs/rudder-server/services/controlplane/identity"
pubsub "github.com/rudderlabs/rudder-server/utils/pubsub"
)
// MockworkspaceConfig is a mock of workspaceConfig interface.
type MockworkspaceConfig struct {
ctrl *gomock.Controller
recorder *MockworkspaceConfigMockRecorder
}
// MockworkspaceConfigMockRecorder is the mock recorder for MockworkspaceConfig.
type MockworkspaceConfigMockRecorder struct {
mock *MockworkspaceConfig
}
// NewMockworkspaceConfig creates a new mock instance.
func NewMockworkspaceConfig(ctrl *gomock.Controller) *MockworkspaceConfig {
mock := &MockworkspaceConfig{ctrl: ctrl}
mock.recorder = &MockworkspaceConfigMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockworkspaceConfig) EXPECT() *MockworkspaceConfigMockRecorder {
return m.recorder
}
// AccessToken mocks base method.
func (m *MockworkspaceConfig) AccessToken() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AccessToken")
ret0, _ := ret[0].(string)
return ret0
}
// AccessToken indicates an expected call of AccessToken.
func (mr *MockworkspaceConfigMockRecorder) AccessToken() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AccessToken", reflect.TypeOf((*MockworkspaceConfig)(nil).AccessToken))
}
// Get mocks base method.
func (m *MockworkspaceConfig) Get(arg0 context.Context) (map[string]ConfigT, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Get", arg0)
ret0, _ := ret[0].(map[string]ConfigT)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Get indicates an expected call of Get.
func (mr *MockworkspaceConfigMockRecorder) Get(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockworkspaceConfig)(nil).Get), arg0)
}
// Identity mocks base method.
func (m *MockworkspaceConfig) Identity() identity.Identifier {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Identity")
ret0, _ := ret[0].(identity.Identifier)
return ret0
}
// Identity indicates an expected call of Identity.
func (mr *MockworkspaceConfigMockRecorder) Identity() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Identity", reflect.TypeOf((*MockworkspaceConfig)(nil).Identity))
}
// SetUp mocks base method.
func (m *MockworkspaceConfig) SetUp() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetUp")
ret0, _ := ret[0].(error)
return ret0
}
// SetUp indicates an expected call of SetUp.
func (mr *MockworkspaceConfigMockRecorder) SetUp() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUp", reflect.TypeOf((*MockworkspaceConfig)(nil).SetUp))
}
// MockBackendConfig is a mock of BackendConfig interface.
type MockBackendConfig struct {
ctrl *gomock.Controller
recorder *MockBackendConfigMockRecorder
}
// MockBackendConfigMockRecorder is the mock recorder for MockBackendConfig.
type MockBackendConfigMockRecorder struct {
mock *MockBackendConfig
}
// NewMockBackendConfig creates a new mock instance.
func NewMockBackendConfig(ctrl *gomock.Controller) *MockBackendConfig {
mock := &MockBackendConfig{ctrl: ctrl}
mock.recorder = &MockBackendConfigMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockBackendConfig) EXPECT() *MockBackendConfigMockRecorder {
return m.recorder
}
// AccessToken mocks base method.
func (m *MockBackendConfig) AccessToken() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AccessToken")
ret0, _ := ret[0].(string)
return ret0
}
// AccessToken indicates an expected call of AccessToken.
func (mr *MockBackendConfigMockRecorder) AccessToken() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AccessToken", reflect.TypeOf((*MockBackendConfig)(nil).AccessToken))
}
// Get mocks base method.
func (m *MockBackendConfig) Get(arg0 context.Context) (map[string]ConfigT, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Get", arg0)
ret0, _ := ret[0].(map[string]ConfigT)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Get indicates an expected call of Get.
func (mr *MockBackendConfigMockRecorder) Get(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockBackendConfig)(nil).Get), arg0)
}
// Identity mocks base method.
func (m *MockBackendConfig) Identity() identity.Identifier {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Identity")
ret0, _ := ret[0].(identity.Identifier)
return ret0
}
// Identity indicates an expected call of Identity.
func (mr *MockBackendConfigMockRecorder) Identity() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Identity", reflect.TypeOf((*MockBackendConfig)(nil).Identity))
}
// SetUp mocks base method.
func (m *MockBackendConfig) SetUp() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetUp")
ret0, _ := ret[0].(error)
return ret0
}
// SetUp indicates an expected call of SetUp.
func (mr *MockBackendConfigMockRecorder) SetUp() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUp", reflect.TypeOf((*MockBackendConfig)(nil).SetUp))
}
// StartWithIDs mocks base method.
func (m *MockBackendConfig) StartWithIDs(ctx context.Context, workspaces string) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "StartWithIDs", ctx, workspaces)
}
// StartWithIDs indicates an expected call of StartWithIDs.
func (mr *MockBackendConfigMockRecorder) StartWithIDs(ctx, workspaces interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartWithIDs", reflect.TypeOf((*MockBackendConfig)(nil).StartWithIDs), ctx, workspaces)
}
// Stop mocks base method.
func (m *MockBackendConfig) Stop() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Stop")
}
// Stop indicates an expected call of Stop.
func (mr *MockBackendConfigMockRecorder) Stop() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockBackendConfig)(nil).Stop))
}
// Subscribe mocks base method.
func (m *MockBackendConfig) Subscribe(ctx context.Context, topic Topic) pubsub.DataChannel {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Subscribe", ctx, topic)
ret0, _ := ret[0].(pubsub.DataChannel)
return ret0
}
// Subscribe indicates an expected call of Subscribe.
func (mr *MockBackendConfigMockRecorder) Subscribe(ctx, topic interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Subscribe", reflect.TypeOf((*MockBackendConfig)(nil).Subscribe), ctx, topic)
}
// WaitForConfig mocks base method.
func (m *MockBackendConfig) WaitForConfig(ctx context.Context) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "WaitForConfig", ctx)
}
// WaitForConfig indicates an expected call of WaitForConfig.
func (mr *MockBackendConfigMockRecorder) WaitForConfig(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitForConfig", reflect.TypeOf((*MockBackendConfig)(nil).WaitForConfig), ctx)
}