63 Star 182 Fork 3

Gitee 极速下载/hyperledger-fabric

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/hyperledger/fabric
Clone or Download
factory.go 1.16 KB
Copy Edit Raw Blame History
// Code generated by mockery v1.0.0. DO NOT EDIT.
package mocks
import blockledger "github.com/hyperledger/fabric/common/ledger/blockledger"
import mock "github.com/stretchr/testify/mock"
// Factory is an autogenerated mock type for the Factory type
type Factory struct {
mock.Mock
}
// ChainIDs provides a mock function with given fields:
func (_m *Factory) ChainIDs() []string {
ret := _m.Called()
var r0 []string
if rf, ok := ret.Get(0).(func() []string); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]string)
}
}
return r0
}
// Close provides a mock function with given fields:
func (_m *Factory) Close() {
_m.Called()
}
// GetOrCreate provides a mock function with given fields: chainID
func (_m *Factory) GetOrCreate(chainID string) (blockledger.ReadWriter, error) {
ret := _m.Called(chainID)
var r0 blockledger.ReadWriter
if rf, ok := ret.Get(0).(func(string) blockledger.ReadWriter); ok {
r0 = rf(chainID)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(blockledger.ReadWriter)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(string) error); ok {
r1 = rf(chainID)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/mirrors/hyperledger-fabric.git
git@gitee.com:mirrors/hyperledger-fabric.git
mirrors
hyperledger-fabric
hyperledger-fabric
v1.4.3

Search