6 Star 46 Fork 28

Hyperledger/fabric

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
message_receiver.go 976 Bytes
一键复制 编辑 原始数据 按行查看 历史
yacovm 提交于 2018-08-26 22:57 . [FAB-11744] Raft Dispatcher
// Code generated by mockery v1.0.0. DO NOT EDIT.
package mocks
import mock "github.com/stretchr/testify/mock"
import orderer "github.com/hyperledger/fabric/protos/orderer"
// MessageReceiver is an autogenerated mock type for the MessageReceiver type
type MessageReceiver struct {
mock.Mock
}
// Step provides a mock function with given fields: req, sender
func (_m *MessageReceiver) Step(req *orderer.StepRequest, sender uint64) error {
ret := _m.Called(req, sender)
var r0 error
if rf, ok := ret.Get(0).(func(*orderer.StepRequest, uint64) error); ok {
r0 = rf(req, sender)
} else {
r0 = ret.Error(0)
}
return r0
}
// Submit provides a mock function with given fields: req, sender
func (_m *MessageReceiver) Submit(req *orderer.SubmitRequest, sender uint64) error {
ret := _m.Called(req, sender)
var r0 error
if rf, ok := ret.Get(0).(func(*orderer.SubmitRequest, uint64) error); ok {
r0 = rf(req, sender)
} else {
r0 = ret.Error(0)
}
return r0
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hyperledger/fabric.git
git@gitee.com:hyperledger/fabric.git
hyperledger
fabric
fabric
v1.3.0-rc1

搜索帮助