-
Notifications
You must be signed in to change notification settings - Fork 8.8k
/
identity_deserializer.go
48 lines (39 loc) · 1.24 KB
/
identity_deserializer.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
// Code generated by mockery v1.0.0. DO NOT EDIT.
package mocks
import mock "github.com/stretchr/testify/mock"
import msp "github.com/hyperledger/fabric/msp"
import protosmsp "github.com/hyperledger/fabric/protos/msp"
// IdentityDeserializer is an autogenerated mock type for the IdentityDeserializer type
type IdentityDeserializer struct {
mock.Mock
}
// DeserializeIdentity provides a mock function with given fields: serializedIdentity
func (_m *IdentityDeserializer) DeserializeIdentity(serializedIdentity []byte) (msp.Identity, error) {
ret := _m.Called(serializedIdentity)
var r0 msp.Identity
if rf, ok := ret.Get(0).(func([]byte) msp.Identity); ok {
r0 = rf(serializedIdentity)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(msp.Identity)
}
}
var r1 error
if rf, ok := ret.Get(1).(func([]byte) error); ok {
r1 = rf(serializedIdentity)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// IsWellFormed provides a mock function with given fields: identity
func (_m *IdentityDeserializer) IsWellFormed(identity *protosmsp.SerializedIdentity) error {
ret := _m.Called(identity)
var r0 error
if rf, ok := ret.Get(0).(func(*protosmsp.SerializedIdentity) error); ok {
r0 = rf(identity)
} else {
r0 = ret.Error(0)
}
return r0
}