1 Star 0 Fork 0

peter/fabric

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
lifecycle.go 1.88 KB
一键复制 编辑 原始数据 按行查看 历史
// Code generated by mockery v1.0.0. DO NOT EDIT.
package mock
import ccprovider "github.com/hyperledger/fabric/core/common/ccprovider"
import ledger "github.com/hyperledger/fabric/core/ledger"
import mock "github.com/stretchr/testify/mock"
// Lifecycle is an autogenerated mock type for the Lifecycle type
type Lifecycle struct {
mock.Mock
}
// ChaincodeContainerInfo provides a mock function with given fields: channelID, chaincodeName, qe
func (_m *Lifecycle) ChaincodeContainerInfo(channelID string, chaincodeName string, qe ledger.SimpleQueryExecutor) (*ccprovider.ChaincodeContainerInfo, error) {
ret := _m.Called(channelID, chaincodeName, qe)
var r0 *ccprovider.ChaincodeContainerInfo
if rf, ok := ret.Get(0).(func(string, string, ledger.SimpleQueryExecutor) *ccprovider.ChaincodeContainerInfo); ok {
r0 = rf(channelID, chaincodeName, qe)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*ccprovider.ChaincodeContainerInfo)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(string, string, ledger.SimpleQueryExecutor) error); ok {
r1 = rf(channelID, chaincodeName, qe)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// ChaincodeDefinition provides a mock function with given fields: channelID, chaincodeName, qe
func (_m *Lifecycle) ChaincodeDefinition(channelID string, chaincodeName string, qe ledger.SimpleQueryExecutor) (ccprovider.ChaincodeDefinition, error) {
ret := _m.Called(channelID, chaincodeName, qe)
var r0 ccprovider.ChaincodeDefinition
if rf, ok := ret.Get(0).(func(string, string, ledger.SimpleQueryExecutor) ccprovider.ChaincodeDefinition); ok {
r0 = rf(channelID, chaincodeName, qe)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(ccprovider.ChaincodeDefinition)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(string, string, ledger.SimpleQueryExecutor) error); ok {
r1 = rf(channelID, chaincodeName, qe)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/peter_code_git/fabric.git
git@gitee.com:peter_code_git/fabric.git
peter_code_git
fabric
fabric
v2.0.0-alpha

搜索帮助