forked from tw-bc-group/fabric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
signing_identity_fetcher.go
40 lines (32 loc) · 1.06 KB
/
signing_identity_fetcher.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
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
// Code generated by mockery v1.0.0
package mocks
import endorsement "github.com/hyperledger/fabric/core/handlers/endorsement/api/identities"
import mock "github.com/stretchr/testify/mock"
import peer "github.com/hyperledger/fabric-protos-go/peer"
// SigningIdentityFetcher is an autogenerated mock type for the SigningIdentityFetcher type
type SigningIdentityFetcher struct {
mock.Mock
}
// SigningIdentityForRequest provides a mock function with given fields: _a0
func (_m *SigningIdentityFetcher) SigningIdentityForRequest(_a0 *peer.SignedProposal) (endorsement.SigningIdentity, error) {
ret := _m.Called(_a0)
var r0 endorsement.SigningIdentity
if rf, ok := ret.Get(0).(func(*peer.SignedProposal) endorsement.SigningIdentity); ok {
r0 = rf(_a0)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(endorsement.SigningIdentity)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(*peer.SignedProposal) error); ok {
r1 = rf(_a0)
} else {
r1 = ret.Error(1)
}
return r0, r1
}