-
Notifications
You must be signed in to change notification settings - Fork 39
/
mock_recipient_activation_interface.go
344 lines (279 loc) · 13.2 KB
/
mock_recipient_activation_interface.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
// Code generated by mockery v2.43.0. DO NOT EDIT.
package sharing
import (
context "context"
sharing "github.com/databricks/databricks-sdk-go/service/sharing"
mock "github.com/stretchr/testify/mock"
)
// MockRecipientActivationInterface is an autogenerated mock type for the RecipientActivationInterface type
type MockRecipientActivationInterface struct {
mock.Mock
}
type MockRecipientActivationInterface_Expecter struct {
mock *mock.Mock
}
func (_m *MockRecipientActivationInterface) EXPECT() *MockRecipientActivationInterface_Expecter {
return &MockRecipientActivationInterface_Expecter{mock: &_m.Mock}
}
// GetActivationUrlInfo provides a mock function with given fields: ctx, request
func (_m *MockRecipientActivationInterface) GetActivationUrlInfo(ctx context.Context, request sharing.GetActivationUrlInfoRequest) error {
ret := _m.Called(ctx, request)
if len(ret) == 0 {
panic("no return value specified for GetActivationUrlInfo")
}
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, sharing.GetActivationUrlInfoRequest) error); ok {
r0 = rf(ctx, request)
} else {
r0 = ret.Error(0)
}
return r0
}
// MockRecipientActivationInterface_GetActivationUrlInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetActivationUrlInfo'
type MockRecipientActivationInterface_GetActivationUrlInfo_Call struct {
*mock.Call
}
// GetActivationUrlInfo is a helper method to define mock.On call
// - ctx context.Context
// - request sharing.GetActivationUrlInfoRequest
func (_e *MockRecipientActivationInterface_Expecter) GetActivationUrlInfo(ctx interface{}, request interface{}) *MockRecipientActivationInterface_GetActivationUrlInfo_Call {
return &MockRecipientActivationInterface_GetActivationUrlInfo_Call{Call: _e.mock.On("GetActivationUrlInfo", ctx, request)}
}
func (_c *MockRecipientActivationInterface_GetActivationUrlInfo_Call) Run(run func(ctx context.Context, request sharing.GetActivationUrlInfoRequest)) *MockRecipientActivationInterface_GetActivationUrlInfo_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(context.Context), args[1].(sharing.GetActivationUrlInfoRequest))
})
return _c
}
func (_c *MockRecipientActivationInterface_GetActivationUrlInfo_Call) Return(_a0 error) *MockRecipientActivationInterface_GetActivationUrlInfo_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *MockRecipientActivationInterface_GetActivationUrlInfo_Call) RunAndReturn(run func(context.Context, sharing.GetActivationUrlInfoRequest) error) *MockRecipientActivationInterface_GetActivationUrlInfo_Call {
_c.Call.Return(run)
return _c
}
// GetActivationUrlInfoByActivationUrl provides a mock function with given fields: ctx, activationUrl
func (_m *MockRecipientActivationInterface) GetActivationUrlInfoByActivationUrl(ctx context.Context, activationUrl string) error {
ret := _m.Called(ctx, activationUrl)
if len(ret) == 0 {
panic("no return value specified for GetActivationUrlInfoByActivationUrl")
}
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, string) error); ok {
r0 = rf(ctx, activationUrl)
} else {
r0 = ret.Error(0)
}
return r0
}
// MockRecipientActivationInterface_GetActivationUrlInfoByActivationUrl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetActivationUrlInfoByActivationUrl'
type MockRecipientActivationInterface_GetActivationUrlInfoByActivationUrl_Call struct {
*mock.Call
}
// GetActivationUrlInfoByActivationUrl is a helper method to define mock.On call
// - ctx context.Context
// - activationUrl string
func (_e *MockRecipientActivationInterface_Expecter) GetActivationUrlInfoByActivationUrl(ctx interface{}, activationUrl interface{}) *MockRecipientActivationInterface_GetActivationUrlInfoByActivationUrl_Call {
return &MockRecipientActivationInterface_GetActivationUrlInfoByActivationUrl_Call{Call: _e.mock.On("GetActivationUrlInfoByActivationUrl", ctx, activationUrl)}
}
func (_c *MockRecipientActivationInterface_GetActivationUrlInfoByActivationUrl_Call) Run(run func(ctx context.Context, activationUrl string)) *MockRecipientActivationInterface_GetActivationUrlInfoByActivationUrl_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(context.Context), args[1].(string))
})
return _c
}
func (_c *MockRecipientActivationInterface_GetActivationUrlInfoByActivationUrl_Call) Return(_a0 error) *MockRecipientActivationInterface_GetActivationUrlInfoByActivationUrl_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *MockRecipientActivationInterface_GetActivationUrlInfoByActivationUrl_Call) RunAndReturn(run func(context.Context, string) error) *MockRecipientActivationInterface_GetActivationUrlInfoByActivationUrl_Call {
_c.Call.Return(run)
return _c
}
// Impl provides a mock function with given fields:
func (_m *MockRecipientActivationInterface) Impl() sharing.RecipientActivationService {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for Impl")
}
var r0 sharing.RecipientActivationService
if rf, ok := ret.Get(0).(func() sharing.RecipientActivationService); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(sharing.RecipientActivationService)
}
}
return r0
}
// MockRecipientActivationInterface_Impl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Impl'
type MockRecipientActivationInterface_Impl_Call struct {
*mock.Call
}
// Impl is a helper method to define mock.On call
func (_e *MockRecipientActivationInterface_Expecter) Impl() *MockRecipientActivationInterface_Impl_Call {
return &MockRecipientActivationInterface_Impl_Call{Call: _e.mock.On("Impl")}
}
func (_c *MockRecipientActivationInterface_Impl_Call) Run(run func()) *MockRecipientActivationInterface_Impl_Call {
_c.Call.Run(func(args mock.Arguments) {
run()
})
return _c
}
func (_c *MockRecipientActivationInterface_Impl_Call) Return(_a0 sharing.RecipientActivationService) *MockRecipientActivationInterface_Impl_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *MockRecipientActivationInterface_Impl_Call) RunAndReturn(run func() sharing.RecipientActivationService) *MockRecipientActivationInterface_Impl_Call {
_c.Call.Return(run)
return _c
}
// RetrieveToken provides a mock function with given fields: ctx, request
func (_m *MockRecipientActivationInterface) RetrieveToken(ctx context.Context, request sharing.RetrieveTokenRequest) (*sharing.RetrieveTokenResponse, error) {
ret := _m.Called(ctx, request)
if len(ret) == 0 {
panic("no return value specified for RetrieveToken")
}
var r0 *sharing.RetrieveTokenResponse
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, sharing.RetrieveTokenRequest) (*sharing.RetrieveTokenResponse, error)); ok {
return rf(ctx, request)
}
if rf, ok := ret.Get(0).(func(context.Context, sharing.RetrieveTokenRequest) *sharing.RetrieveTokenResponse); ok {
r0 = rf(ctx, request)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*sharing.RetrieveTokenResponse)
}
}
if rf, ok := ret.Get(1).(func(context.Context, sharing.RetrieveTokenRequest) error); ok {
r1 = rf(ctx, request)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// MockRecipientActivationInterface_RetrieveToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveToken'
type MockRecipientActivationInterface_RetrieveToken_Call struct {
*mock.Call
}
// RetrieveToken is a helper method to define mock.On call
// - ctx context.Context
// - request sharing.RetrieveTokenRequest
func (_e *MockRecipientActivationInterface_Expecter) RetrieveToken(ctx interface{}, request interface{}) *MockRecipientActivationInterface_RetrieveToken_Call {
return &MockRecipientActivationInterface_RetrieveToken_Call{Call: _e.mock.On("RetrieveToken", ctx, request)}
}
func (_c *MockRecipientActivationInterface_RetrieveToken_Call) Run(run func(ctx context.Context, request sharing.RetrieveTokenRequest)) *MockRecipientActivationInterface_RetrieveToken_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(context.Context), args[1].(sharing.RetrieveTokenRequest))
})
return _c
}
func (_c *MockRecipientActivationInterface_RetrieveToken_Call) Return(_a0 *sharing.RetrieveTokenResponse, _a1 error) *MockRecipientActivationInterface_RetrieveToken_Call {
_c.Call.Return(_a0, _a1)
return _c
}
func (_c *MockRecipientActivationInterface_RetrieveToken_Call) RunAndReturn(run func(context.Context, sharing.RetrieveTokenRequest) (*sharing.RetrieveTokenResponse, error)) *MockRecipientActivationInterface_RetrieveToken_Call {
_c.Call.Return(run)
return _c
}
// RetrieveTokenByActivationUrl provides a mock function with given fields: ctx, activationUrl
func (_m *MockRecipientActivationInterface) RetrieveTokenByActivationUrl(ctx context.Context, activationUrl string) (*sharing.RetrieveTokenResponse, error) {
ret := _m.Called(ctx, activationUrl)
if len(ret) == 0 {
panic("no return value specified for RetrieveTokenByActivationUrl")
}
var r0 *sharing.RetrieveTokenResponse
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, string) (*sharing.RetrieveTokenResponse, error)); ok {
return rf(ctx, activationUrl)
}
if rf, ok := ret.Get(0).(func(context.Context, string) *sharing.RetrieveTokenResponse); ok {
r0 = rf(ctx, activationUrl)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*sharing.RetrieveTokenResponse)
}
}
if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
r1 = rf(ctx, activationUrl)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// MockRecipientActivationInterface_RetrieveTokenByActivationUrl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveTokenByActivationUrl'
type MockRecipientActivationInterface_RetrieveTokenByActivationUrl_Call struct {
*mock.Call
}
// RetrieveTokenByActivationUrl is a helper method to define mock.On call
// - ctx context.Context
// - activationUrl string
func (_e *MockRecipientActivationInterface_Expecter) RetrieveTokenByActivationUrl(ctx interface{}, activationUrl interface{}) *MockRecipientActivationInterface_RetrieveTokenByActivationUrl_Call {
return &MockRecipientActivationInterface_RetrieveTokenByActivationUrl_Call{Call: _e.mock.On("RetrieveTokenByActivationUrl", ctx, activationUrl)}
}
func (_c *MockRecipientActivationInterface_RetrieveTokenByActivationUrl_Call) Run(run func(ctx context.Context, activationUrl string)) *MockRecipientActivationInterface_RetrieveTokenByActivationUrl_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(context.Context), args[1].(string))
})
return _c
}
func (_c *MockRecipientActivationInterface_RetrieveTokenByActivationUrl_Call) Return(_a0 *sharing.RetrieveTokenResponse, _a1 error) *MockRecipientActivationInterface_RetrieveTokenByActivationUrl_Call {
_c.Call.Return(_a0, _a1)
return _c
}
func (_c *MockRecipientActivationInterface_RetrieveTokenByActivationUrl_Call) RunAndReturn(run func(context.Context, string) (*sharing.RetrieveTokenResponse, error)) *MockRecipientActivationInterface_RetrieveTokenByActivationUrl_Call {
_c.Call.Return(run)
return _c
}
// WithImpl provides a mock function with given fields: impl
func (_m *MockRecipientActivationInterface) WithImpl(impl sharing.RecipientActivationService) sharing.RecipientActivationInterface {
ret := _m.Called(impl)
if len(ret) == 0 {
panic("no return value specified for WithImpl")
}
var r0 sharing.RecipientActivationInterface
if rf, ok := ret.Get(0).(func(sharing.RecipientActivationService) sharing.RecipientActivationInterface); ok {
r0 = rf(impl)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(sharing.RecipientActivationInterface)
}
}
return r0
}
// MockRecipientActivationInterface_WithImpl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithImpl'
type MockRecipientActivationInterface_WithImpl_Call struct {
*mock.Call
}
// WithImpl is a helper method to define mock.On call
// - impl sharing.RecipientActivationService
func (_e *MockRecipientActivationInterface_Expecter) WithImpl(impl interface{}) *MockRecipientActivationInterface_WithImpl_Call {
return &MockRecipientActivationInterface_WithImpl_Call{Call: _e.mock.On("WithImpl", impl)}
}
func (_c *MockRecipientActivationInterface_WithImpl_Call) Run(run func(impl sharing.RecipientActivationService)) *MockRecipientActivationInterface_WithImpl_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(sharing.RecipientActivationService))
})
return _c
}
func (_c *MockRecipientActivationInterface_WithImpl_Call) Return(_a0 sharing.RecipientActivationInterface) *MockRecipientActivationInterface_WithImpl_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *MockRecipientActivationInterface_WithImpl_Call) RunAndReturn(run func(sharing.RecipientActivationService) sharing.RecipientActivationInterface) *MockRecipientActivationInterface_WithImpl_Call {
_c.Call.Return(run)
return _c
}
// NewMockRecipientActivationInterface creates a new instance of MockRecipientActivationInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewMockRecipientActivationInterface(t interface {
mock.TestingT
Cleanup(func())
}) *MockRecipientActivationInterface {
mock := &MockRecipientActivationInterface{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}