-
Notifications
You must be signed in to change notification settings - Fork 0
/
mockcore.gen.go
250 lines (211 loc) · 8.48 KB
/
mockcore.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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/hyperledger/fabric-sdk-go/pkg/common/providers/core (interfaces: CryptoSuiteConfig,ConfigBackend,Providers)
// Package mockcore is a generated GoMock package.
package mockcore
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
core "github.com/hyperledger/fabric-sdk-go/pkg/common/providers/core"
)
// MockCryptoSuiteConfig is a mock of CryptoSuiteConfig interface
type MockCryptoSuiteConfig struct {
ctrl *gomock.Controller
recorder *MockCryptoSuiteConfigMockRecorder
}
// MockCryptoSuiteConfigMockRecorder is the mock recorder for MockCryptoSuiteConfig
type MockCryptoSuiteConfigMockRecorder struct {
mock *MockCryptoSuiteConfig
}
// NewMockCryptoSuiteConfig creates a new mock instance
func NewMockCryptoSuiteConfig(ctrl *gomock.Controller) *MockCryptoSuiteConfig {
mock := &MockCryptoSuiteConfig{ctrl: ctrl}
mock.recorder = &MockCryptoSuiteConfigMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockCryptoSuiteConfig) EXPECT() *MockCryptoSuiteConfigMockRecorder {
return m.recorder
}
// IsSecurityEnabled mocks base method
func (m *MockCryptoSuiteConfig) IsSecurityEnabled() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IsSecurityEnabled")
ret0, _ := ret[0].(bool)
return ret0
}
// IsSecurityEnabled indicates an expected call of IsSecurityEnabled
func (mr *MockCryptoSuiteConfigMockRecorder) IsSecurityEnabled() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsSecurityEnabled", reflect.TypeOf((*MockCryptoSuiteConfig)(nil).IsSecurityEnabled))
}
// KeyStorePath mocks base method
func (m *MockCryptoSuiteConfig) KeyStorePath() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "KeyStorePath")
ret0, _ := ret[0].(string)
return ret0
}
// KeyStorePath indicates an expected call of KeyStorePath
func (mr *MockCryptoSuiteConfigMockRecorder) KeyStorePath() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KeyStorePath", reflect.TypeOf((*MockCryptoSuiteConfig)(nil).KeyStorePath))
}
// SecurityAlgorithm mocks base method
func (m *MockCryptoSuiteConfig) SecurityAlgorithm() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SecurityAlgorithm")
ret0, _ := ret[0].(string)
return ret0
}
// SecurityAlgorithm indicates an expected call of SecurityAlgorithm
func (mr *MockCryptoSuiteConfigMockRecorder) SecurityAlgorithm() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SecurityAlgorithm", reflect.TypeOf((*MockCryptoSuiteConfig)(nil).SecurityAlgorithm))
}
// SecurityLevel mocks base method
func (m *MockCryptoSuiteConfig) SecurityLevel() int {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SecurityLevel")
ret0, _ := ret[0].(int)
return ret0
}
// SecurityLevel indicates an expected call of SecurityLevel
func (mr *MockCryptoSuiteConfigMockRecorder) SecurityLevel() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SecurityLevel", reflect.TypeOf((*MockCryptoSuiteConfig)(nil).SecurityLevel))
}
// SecurityProvider mocks base method
func (m *MockCryptoSuiteConfig) SecurityProvider() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SecurityProvider")
ret0, _ := ret[0].(string)
return ret0
}
// SecurityProvider indicates an expected call of SecurityProvider
func (mr *MockCryptoSuiteConfigMockRecorder) SecurityProvider() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SecurityProvider", reflect.TypeOf((*MockCryptoSuiteConfig)(nil).SecurityProvider))
}
// SecurityProviderLabel mocks base method
func (m *MockCryptoSuiteConfig) SecurityProviderLabel() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SecurityProviderLabel")
ret0, _ := ret[0].(string)
return ret0
}
// SecurityProviderLabel indicates an expected call of SecurityProviderLabel
func (mr *MockCryptoSuiteConfigMockRecorder) SecurityProviderLabel() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SecurityProviderLabel", reflect.TypeOf((*MockCryptoSuiteConfig)(nil).SecurityProviderLabel))
}
// SecurityProviderLibPath mocks base method
func (m *MockCryptoSuiteConfig) SecurityProviderLibPath() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SecurityProviderLibPath")
ret0, _ := ret[0].(string)
return ret0
}
// SecurityProviderLibPath indicates an expected call of SecurityProviderLibPath
func (mr *MockCryptoSuiteConfigMockRecorder) SecurityProviderLibPath() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SecurityProviderLibPath", reflect.TypeOf((*MockCryptoSuiteConfig)(nil).SecurityProviderLibPath))
}
// SecurityProviderPin mocks base method
func (m *MockCryptoSuiteConfig) SecurityProviderPin() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SecurityProviderPin")
ret0, _ := ret[0].(string)
return ret0
}
// SecurityProviderPin indicates an expected call of SecurityProviderPin
func (mr *MockCryptoSuiteConfigMockRecorder) SecurityProviderPin() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SecurityProviderPin", reflect.TypeOf((*MockCryptoSuiteConfig)(nil).SecurityProviderPin))
}
// SoftVerify mocks base method
func (m *MockCryptoSuiteConfig) SoftVerify() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SoftVerify")
ret0, _ := ret[0].(bool)
return ret0
}
// SoftVerify indicates an expected call of SoftVerify
func (mr *MockCryptoSuiteConfigMockRecorder) SoftVerify() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SoftVerify", reflect.TypeOf((*MockCryptoSuiteConfig)(nil).SoftVerify))
}
// MockConfigBackend is a mock of ConfigBackend interface
type MockConfigBackend struct {
ctrl *gomock.Controller
recorder *MockConfigBackendMockRecorder
}
// MockConfigBackendMockRecorder is the mock recorder for MockConfigBackend
type MockConfigBackendMockRecorder struct {
mock *MockConfigBackend
}
// NewMockConfigBackend creates a new mock instance
func NewMockConfigBackend(ctrl *gomock.Controller) *MockConfigBackend {
mock := &MockConfigBackend{ctrl: ctrl}
mock.recorder = &MockConfigBackendMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockConfigBackend) EXPECT() *MockConfigBackendMockRecorder {
return m.recorder
}
// Lookup mocks base method
func (m *MockConfigBackend) Lookup(arg0 string) (interface{}, bool) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Lookup", arg0)
ret0, _ := ret[0].(interface{})
ret1, _ := ret[1].(bool)
return ret0, ret1
}
// Lookup indicates an expected call of Lookup
func (mr *MockConfigBackendMockRecorder) Lookup(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Lookup", reflect.TypeOf((*MockConfigBackend)(nil).Lookup), arg0)
}
// 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
}
// CryptoSuite mocks base method
func (m *MockProviders) CryptoSuite() core.CryptoSuite {
m.ctrl.T.Helper()
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 {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CryptoSuite", reflect.TypeOf((*MockProviders)(nil).CryptoSuite))
}
// SigningManager mocks base method
func (m *MockProviders) SigningManager() core.SigningManager {
m.ctrl.T.Helper()
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 {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SigningManager", reflect.TypeOf((*MockProviders)(nil).SigningManager))
}