6 Star 44 Fork 25

Hyperledger / fabric

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
dispatcher.go 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
// 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
}
1
https://gitee.com/hyperledger/fabric.git
git@gitee.com:hyperledger/fabric.git
hyperledger
fabric
fabric
v2.1.1

搜索帮助