63 Star 183 Fork 3

Gitee 极速下载/hyperledger-fabric

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/hyperledger/fabric
克隆/下载
store.go 3.22 KB
一键复制 编辑 原始数据 按行查看 历史
// Code generated by mockery v1.0.0
package mocks
import ledger "github.com/hyperledger/fabric/core/ledger"
import mock "github.com/stretchr/testify/mock"
import protostransientstore "github.com/hyperledger/fabric/protos/transientstore"
import rwset "github.com/hyperledger/fabric/protos/ledger/rwset"
import transientstore "github.com/hyperledger/fabric/core/transientstore"
// Store is an autogenerated mock type for the Store type
type Store struct {
mock.Mock
}
// GetMinTransientBlkHt provides a mock function with given fields:
func (_m *Store) GetMinTransientBlkHt() (uint64, error) {
ret := _m.Called()
var r0 uint64
if rf, ok := ret.Get(0).(func() uint64); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(uint64)
}
var r1 error
if rf, ok := ret.Get(1).(func() error); ok {
r1 = rf()
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// GetTxPvtRWSetByTxid provides a mock function with given fields: txid, filter
func (_m *Store) GetTxPvtRWSetByTxid(txid string, filter ledger.PvtNsCollFilter) (transientstore.RWSetScanner, error) {
ret := _m.Called(txid, filter)
var r0 transientstore.RWSetScanner
if rf, ok := ret.Get(0).(func(string, ledger.PvtNsCollFilter) transientstore.RWSetScanner); ok {
r0 = rf(txid, filter)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(transientstore.RWSetScanner)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(string, ledger.PvtNsCollFilter) error); ok {
r1 = rf(txid, filter)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// Persist provides a mock function with given fields: txid, blockHeight, privateSimulationResults
func (_m *Store) Persist(txid string, blockHeight uint64, privateSimulationResults *rwset.TxPvtReadWriteSet) error {
ret := _m.Called(txid, blockHeight, privateSimulationResults)
var r0 error
if rf, ok := ret.Get(0).(func(string, uint64, *rwset.TxPvtReadWriteSet) error); ok {
r0 = rf(txid, blockHeight, privateSimulationResults)
} else {
r0 = ret.Error(0)
}
return r0
}
// PersistWithConfig provides a mock function with given fields: txid, blockHeight, privateSimulationResultsWithConfig
func (_m *Store) PersistWithConfig(txid string, blockHeight uint64, privateSimulationResultsWithConfig *protostransientstore.TxPvtReadWriteSetWithConfigInfo) error {
ret := _m.Called(txid, blockHeight, privateSimulationResultsWithConfig)
var r0 error
if rf, ok := ret.Get(0).(func(string, uint64, *protostransientstore.TxPvtReadWriteSetWithConfigInfo) error); ok {
r0 = rf(txid, blockHeight, privateSimulationResultsWithConfig)
} else {
r0 = ret.Error(0)
}
return r0
}
// PurgeByHeight provides a mock function with given fields: maxBlockNumToRetain
func (_m *Store) PurgeByHeight(maxBlockNumToRetain uint64) error {
ret := _m.Called(maxBlockNumToRetain)
var r0 error
if rf, ok := ret.Get(0).(func(uint64) error); ok {
r0 = rf(maxBlockNumToRetain)
} else {
r0 = ret.Error(0)
}
return r0
}
// PurgeByTxids provides a mock function with given fields: txids
func (_m *Store) PurgeByTxids(txids []string) error {
ret := _m.Called(txids)
var r0 error
if rf, ok := ret.Get(0).(func([]string) error); ok {
r0 = rf(txids)
} else {
r0 = ret.Error(0)
}
return r0
}
// Shutdown provides a mock function with given fields:
func (_m *Store) Shutdown() {
_m.Called()
}
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

搜索帮助