forked from hyperledger/fabric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dispatcher.go
36 lines (28 loc) · 1.01 KB
/
dispatcher.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
// Code generated by mockery v1.0.0. DO NOT EDIT.
package mocks
import (
common "github.com/hyperledger/fabric-protos-go/common"
mock "github.com/stretchr/testify/mock"
peer "github.com/hyperledger/fabric-protos-go/peer"
)
// Dispatcher is an autogenerated mock type for the Dispatcher type
type Dispatcher struct {
mock.Mock
}
// Dispatch provides a mock function with given fields: seq, payload, envBytes, block
func (_m *Dispatcher) Dispatch(seq int, payload *common.Payload, envBytes []byte, block *common.Block) (error, peer.TxValidationCode) {
ret := _m.Called(seq, payload, envBytes, block)
var r0 error
if rf, ok := ret.Get(0).(func(int, *common.Payload, []byte, *common.Block) error); ok {
r0 = rf(seq, payload, envBytes, block)
} else {
r0 = ret.Error(0)
}
var r1 peer.TxValidationCode
if rf, ok := ret.Get(1).(func(int, *common.Payload, []byte, *common.Block) peer.TxValidationCode); ok {
r1 = rf(seq, payload, envBytes, block)
} else {
r1 = ret.Get(1).(peer.TxValidationCode)
}
return r0, r1
}