forked from hyperledger/fabric-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mockcontext.gen.go
364 lines (303 loc) · 12.6 KB
/
mockcontext.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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/hyperledger/fabric-sdk-go/pkg/common/providers/context (interfaces: Providers,Client)
// Package mockcontext is a generated GoMock package.
package mockcontext
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
core "github.com/hyperledger/fabric-sdk-go/pkg/common/providers/core"
fab "github.com/hyperledger/fabric-sdk-go/pkg/common/providers/fab"
msp "github.com/hyperledger/fabric-sdk-go/pkg/common/providers/msp"
)
// MockProviders is a mock of Providers interface
type MockProviders struct {
ctrl *gomock.Controller
recorder *MockProvidersMockRecorder
}
// MockProvidersMockRecorder is the mock recorder for MockProviders
type MockProvidersMockRecorder struct {
mock *MockProviders
}
// NewMockProviders creates a new mock instance
func NewMockProviders(ctrl *gomock.Controller) *MockProviders {
mock := &MockProviders{ctrl: ctrl}
mock.recorder = &MockProvidersMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockProviders) EXPECT() *MockProvidersMockRecorder {
return m.recorder
}
// ChannelProvider mocks base method
func (m *MockProviders) ChannelProvider() fab.ChannelProvider {
ret := m.ctrl.Call(m, "ChannelProvider")
ret0, _ := ret[0].(fab.ChannelProvider)
return ret0
}
// ChannelProvider indicates an expected call of ChannelProvider
func (mr *MockProvidersMockRecorder) ChannelProvider() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChannelProvider", reflect.TypeOf((*MockProviders)(nil).ChannelProvider))
}
// Config mocks base method
func (m *MockProviders) Config() core.Config {
ret := m.ctrl.Call(m, "Config")
ret0, _ := ret[0].(core.Config)
return ret0
}
// Config indicates an expected call of Config
func (mr *MockProvidersMockRecorder) Config() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Config", reflect.TypeOf((*MockProviders)(nil).Config))
}
// CryptoSuite mocks base method
func (m *MockProviders) CryptoSuite() core.CryptoSuite {
ret := m.ctrl.Call(m, "CryptoSuite")
ret0, _ := ret[0].(core.CryptoSuite)
return ret0
}
// CryptoSuite indicates an expected call of CryptoSuite
func (mr *MockProvidersMockRecorder) CryptoSuite() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CryptoSuite", reflect.TypeOf((*MockProviders)(nil).CryptoSuite))
}
// DiscoveryProvider mocks base method
func (m *MockProviders) DiscoveryProvider() fab.DiscoveryProvider {
ret := m.ctrl.Call(m, "DiscoveryProvider")
ret0, _ := ret[0].(fab.DiscoveryProvider)
return ret0
}
// DiscoveryProvider indicates an expected call of DiscoveryProvider
func (mr *MockProvidersMockRecorder) DiscoveryProvider() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DiscoveryProvider", reflect.TypeOf((*MockProviders)(nil).DiscoveryProvider))
}
// IdentityManager mocks base method
func (m *MockProviders) IdentityManager(arg0 string) (msp.IdentityManager, bool) {
ret := m.ctrl.Call(m, "IdentityManager", arg0)
ret0, _ := ret[0].(msp.IdentityManager)
ret1, _ := ret[1].(bool)
return ret0, ret1
}
// IdentityManager indicates an expected call of IdentityManager
func (mr *MockProvidersMockRecorder) IdentityManager(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IdentityManager", reflect.TypeOf((*MockProviders)(nil).IdentityManager), arg0)
}
// InfraProvider mocks base method
func (m *MockProviders) InfraProvider() fab.InfraProvider {
ret := m.ctrl.Call(m, "InfraProvider")
ret0, _ := ret[0].(fab.InfraProvider)
return ret0
}
// InfraProvider indicates an expected call of InfraProvider
func (mr *MockProvidersMockRecorder) InfraProvider() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InfraProvider", reflect.TypeOf((*MockProviders)(nil).InfraProvider))
}
// SelectionProvider mocks base method
func (m *MockProviders) SelectionProvider() fab.SelectionProvider {
ret := m.ctrl.Call(m, "SelectionProvider")
ret0, _ := ret[0].(fab.SelectionProvider)
return ret0
}
// SelectionProvider indicates an expected call of SelectionProvider
func (mr *MockProvidersMockRecorder) SelectionProvider() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelectionProvider", reflect.TypeOf((*MockProviders)(nil).SelectionProvider))
}
// SigningManager mocks base method
func (m *MockProviders) SigningManager() core.SigningManager {
ret := m.ctrl.Call(m, "SigningManager")
ret0, _ := ret[0].(core.SigningManager)
return ret0
}
// SigningManager indicates an expected call of SigningManager
func (mr *MockProvidersMockRecorder) SigningManager() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SigningManager", reflect.TypeOf((*MockProviders)(nil).SigningManager))
}
// UserStore mocks base method
func (m *MockProviders) UserStore() msp.UserStore {
ret := m.ctrl.Call(m, "UserStore")
ret0, _ := ret[0].(msp.UserStore)
return ret0
}
// UserStore indicates an expected call of UserStore
func (mr *MockProvidersMockRecorder) UserStore() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserStore", reflect.TypeOf((*MockProviders)(nil).UserStore))
}
// MockClient is a mock of Client interface
type MockClient struct {
ctrl *gomock.Controller
recorder *MockClientMockRecorder
}
// MockClientMockRecorder is the mock recorder for MockClient
type MockClientMockRecorder struct {
mock *MockClient
}
// NewMockClient creates a new mock instance
func NewMockClient(ctrl *gomock.Controller) *MockClient {
mock := &MockClient{ctrl: ctrl}
mock.recorder = &MockClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockClient) EXPECT() *MockClientMockRecorder {
return m.recorder
}
// ChannelProvider mocks base method
func (m *MockClient) ChannelProvider() fab.ChannelProvider {
ret := m.ctrl.Call(m, "ChannelProvider")
ret0, _ := ret[0].(fab.ChannelProvider)
return ret0
}
// ChannelProvider indicates an expected call of ChannelProvider
func (mr *MockClientMockRecorder) ChannelProvider() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChannelProvider", reflect.TypeOf((*MockClient)(nil).ChannelProvider))
}
// Config mocks base method
func (m *MockClient) Config() core.Config {
ret := m.ctrl.Call(m, "Config")
ret0, _ := ret[0].(core.Config)
return ret0
}
// Config indicates an expected call of Config
func (mr *MockClientMockRecorder) Config() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Config", reflect.TypeOf((*MockClient)(nil).Config))
}
// CryptoSuite mocks base method
func (m *MockClient) CryptoSuite() core.CryptoSuite {
ret := m.ctrl.Call(m, "CryptoSuite")
ret0, _ := ret[0].(core.CryptoSuite)
return ret0
}
// CryptoSuite indicates an expected call of CryptoSuite
func (mr *MockClientMockRecorder) CryptoSuite() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CryptoSuite", reflect.TypeOf((*MockClient)(nil).CryptoSuite))
}
// DiscoveryProvider mocks base method
func (m *MockClient) DiscoveryProvider() fab.DiscoveryProvider {
ret := m.ctrl.Call(m, "DiscoveryProvider")
ret0, _ := ret[0].(fab.DiscoveryProvider)
return ret0
}
// DiscoveryProvider indicates an expected call of DiscoveryProvider
func (mr *MockClientMockRecorder) DiscoveryProvider() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DiscoveryProvider", reflect.TypeOf((*MockClient)(nil).DiscoveryProvider))
}
// EnrollmentCertificate mocks base method
func (m *MockClient) EnrollmentCertificate() []byte {
ret := m.ctrl.Call(m, "EnrollmentCertificate")
ret0, _ := ret[0].([]byte)
return ret0
}
// EnrollmentCertificate indicates an expected call of EnrollmentCertificate
func (mr *MockClientMockRecorder) EnrollmentCertificate() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnrollmentCertificate", reflect.TypeOf((*MockClient)(nil).EnrollmentCertificate))
}
// Identifier mocks base method
func (m *MockClient) Identifier() *msp.IdentityIdentifier {
ret := m.ctrl.Call(m, "Identifier")
ret0, _ := ret[0].(*msp.IdentityIdentifier)
return ret0
}
// Identifier indicates an expected call of Identifier
func (mr *MockClientMockRecorder) Identifier() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Identifier", reflect.TypeOf((*MockClient)(nil).Identifier))
}
// IdentityManager mocks base method
func (m *MockClient) IdentityManager(arg0 string) (msp.IdentityManager, bool) {
ret := m.ctrl.Call(m, "IdentityManager", arg0)
ret0, _ := ret[0].(msp.IdentityManager)
ret1, _ := ret[1].(bool)
return ret0, ret1
}
// IdentityManager indicates an expected call of IdentityManager
func (mr *MockClientMockRecorder) IdentityManager(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IdentityManager", reflect.TypeOf((*MockClient)(nil).IdentityManager), arg0)
}
// InfraProvider mocks base method
func (m *MockClient) InfraProvider() fab.InfraProvider {
ret := m.ctrl.Call(m, "InfraProvider")
ret0, _ := ret[0].(fab.InfraProvider)
return ret0
}
// InfraProvider indicates an expected call of InfraProvider
func (mr *MockClientMockRecorder) InfraProvider() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InfraProvider", reflect.TypeOf((*MockClient)(nil).InfraProvider))
}
// PrivateKey mocks base method
func (m *MockClient) PrivateKey() core.Key {
ret := m.ctrl.Call(m, "PrivateKey")
ret0, _ := ret[0].(core.Key)
return ret0
}
// PrivateKey indicates an expected call of PrivateKey
func (mr *MockClientMockRecorder) PrivateKey() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrivateKey", reflect.TypeOf((*MockClient)(nil).PrivateKey))
}
// PublicVersion mocks base method
func (m *MockClient) PublicVersion() msp.Identity {
ret := m.ctrl.Call(m, "PublicVersion")
ret0, _ := ret[0].(msp.Identity)
return ret0
}
// PublicVersion indicates an expected call of PublicVersion
func (mr *MockClientMockRecorder) PublicVersion() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PublicVersion", reflect.TypeOf((*MockClient)(nil).PublicVersion))
}
// SelectionProvider mocks base method
func (m *MockClient) SelectionProvider() fab.SelectionProvider {
ret := m.ctrl.Call(m, "SelectionProvider")
ret0, _ := ret[0].(fab.SelectionProvider)
return ret0
}
// SelectionProvider indicates an expected call of SelectionProvider
func (mr *MockClientMockRecorder) SelectionProvider() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelectionProvider", reflect.TypeOf((*MockClient)(nil).SelectionProvider))
}
// Serialize mocks base method
func (m *MockClient) Serialize() ([]byte, error) {
ret := m.ctrl.Call(m, "Serialize")
ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Serialize indicates an expected call of Serialize
func (mr *MockClientMockRecorder) Serialize() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Serialize", reflect.TypeOf((*MockClient)(nil).Serialize))
}
// Sign mocks base method
func (m *MockClient) Sign(arg0 []byte) ([]byte, error) {
ret := m.ctrl.Call(m, "Sign", arg0)
ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Sign indicates an expected call of Sign
func (mr *MockClientMockRecorder) Sign(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sign", reflect.TypeOf((*MockClient)(nil).Sign), arg0)
}
// SigningManager mocks base method
func (m *MockClient) SigningManager() core.SigningManager {
ret := m.ctrl.Call(m, "SigningManager")
ret0, _ := ret[0].(core.SigningManager)
return ret0
}
// SigningManager indicates an expected call of SigningManager
func (mr *MockClientMockRecorder) SigningManager() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SigningManager", reflect.TypeOf((*MockClient)(nil).SigningManager))
}
// UserStore mocks base method
func (m *MockClient) UserStore() msp.UserStore {
ret := m.ctrl.Call(m, "UserStore")
ret0, _ := ret[0].(msp.UserStore)
return ret0
}
// UserStore indicates an expected call of UserStore
func (mr *MockClientMockRecorder) UserStore() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserStore", reflect.TypeOf((*MockClient)(nil).UserStore))
}
// Verify mocks base method
func (m *MockClient) Verify(arg0, arg1 []byte) error {
ret := m.ctrl.Call(m, "Verify", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// Verify indicates an expected call of Verify
func (mr *MockClientMockRecorder) Verify(arg0, arg1 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Verify", reflect.TypeOf((*MockClient)(nil).Verify), arg0, arg1)
}