forked from hyperledger/fabric
-
Notifications
You must be signed in to change notification settings - Fork 1
/
channel_response.go
88 lines (72 loc) · 2.18 KB
/
channel_response.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
// Code generated by mockery v1.0.0. DO NOT EDIT.
package mocks
import client "github.com/hyperledger/fabric/discovery/client"
import discovery "github.com/hyperledger/fabric-protos-go/discovery"
import mock "github.com/stretchr/testify/mock"
// ChannelResponse is an autogenerated mock type for the ChannelResponse type
type ChannelResponse struct {
mock.Mock
}
// Config provides a mock function with given fields:
func (_m *ChannelResponse) Config() (*discovery.ConfigResult, error) {
ret := _m.Called()
var r0 *discovery.ConfigResult
if rf, ok := ret.Get(0).(func() *discovery.ConfigResult); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*discovery.ConfigResult)
}
}
var r1 error
if rf, ok := ret.Get(1).(func() error); ok {
r1 = rf()
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// Endorsers provides a mock function with given fields: invocationChain, f
func (_m *ChannelResponse) Endorsers(invocationChain client.InvocationChain, f client.Filter) (client.Endorsers, error) {
ret := _m.Called(invocationChain, f)
var r0 client.Endorsers
if rf, ok := ret.Get(0).(func(client.InvocationChain, client.Filter) client.Endorsers); ok {
r0 = rf(invocationChain, f)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(client.Endorsers)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(client.InvocationChain, client.Filter) error); ok {
r1 = rf(invocationChain, f)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// Peers provides a mock function with given fields: invocationChain
func (_m *ChannelResponse) Peers(invocationChain ...*discovery.ChaincodeCall) ([]*client.Peer, error) {
_va := make([]interface{}, len(invocationChain))
for _i := range invocationChain {
_va[_i] = invocationChain[_i]
}
var _ca []interface{}
_ca = append(_ca, _va...)
ret := _m.Called(_ca...)
var r0 []*client.Peer
if rf, ok := ret.Get(0).(func(...*discovery.ChaincodeCall) []*client.Peer); ok {
r0 = rf(invocationChain...)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]*client.Peer)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(...*discovery.ChaincodeCall) error); ok {
r1 = rf(invocationChain...)
} else {
r1 = ret.Error(1)
}
return r0, r1
}