mocks

package
v0.0.0-...-523a819 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectionStore

type CollectionStore struct {
	mock.Mock
}

CollectionStore是为CollectionStore类型自动生成的模拟类型

func (*CollectionStore) AccessFilter

func (_m *CollectionStore) AccessFilter(channelName string, collectionPolicyConfig *common.CollectionPolicyConfig) (privdata.Filter, error)

accessfilter提供具有给定字段的模拟函数:channelname、collectionpolicyconfig

func (*CollectionStore) HasReadAccess

hasreadaccess提供了一个具有给定字段的模拟函数:a0、a1、a2

func (*CollectionStore) RetrieveCollection

func (_m *CollectionStore) RetrieveCollection(_a0 common.CollectionCriteria) (privdata.Collection, error)

RetrieveCollection提供具有给定字段的模拟函数:a0

func (*CollectionStore) RetrieveCollectionAccessPolicy

func (_m *CollectionStore) RetrieveCollectionAccessPolicy(_a0 common.CollectionCriteria) (privdata.CollectionAccessPolicy, error)

RetrieveCollectionAccessPolicy提供具有给定字段的模拟函数:a0

func (*CollectionStore) RetrieveCollectionConfigPackage

func (_m *CollectionStore) RetrieveCollectionConfigPackage(_a0 common.CollectionCriteria) (*common.CollectionConfigPackage, error)

RetrieveCollectionConfigPackage提供具有给定字段的模拟函数:a0

func (*CollectionStore) RetrieveCollectionPersistenceConfigs

func (_m *CollectionStore) RetrieveCollectionPersistenceConfigs(_a0 common.CollectionCriteria) (privdata.CollectionPersistenceConfigs, error)

RetrieveCollectionPersistenceConfigs提供具有给定字段的模拟函数:a0

type Committer

type Committer struct {
	mock.Mock
}

committer是committer类型的自动生成的模拟类型

func (*Committer) Close

func (_m *Committer) Close()

close为给定字段提供模拟函数:

func (*Committer) CommitPvtDataOfOldBlocks

func (_m *Committer) CommitPvtDataOfOldBlocks(blockPvtData []*ledger.BlockPvtData) ([]*ledger.PvtdataHashMismatch, error)

commitpvtdataofoldblocks为给定字段提供模拟函数:blockpvdtdata

func (*Committer) CommitWithPvtData

func (_m *Committer) CommitWithPvtData(blockAndPvtData *ledger.BlockAndPvtData) error

commitWithPvtData为给定字段提供模拟函数:blockAndPvtData

func (*Committer) GetBlocks

func (_m *Committer) GetBlocks(blockSeqs []uint64) []*common.Block

getBlocks提供了一个具有给定字段的模拟函数:blockseq

func (*Committer) GetConfigHistoryRetriever

func (_m *Committer) GetConfigHistoryRetriever() (ledger.ConfigHistoryRetriever, error)

getconfigHistoryRetriever提供具有给定字段的模拟函数:

func (*Committer) GetMissingPvtDataTracker

func (_m *Committer) GetMissingPvtDataTracker() (ledger.MissingPvtDataTracker, error)

GetMissingPvtDataTracker提供了一个具有给定字段的模拟函数:

func (*Committer) GetPvtDataAndBlockByNum

func (_m *Committer) GetPvtDataAndBlockByNum(seqNum uint64) (*ledger.BlockAndPvtData, error)

getpvtdata和blockbynum提供了一个具有给定字段的模拟函数:seqnum

func (*Committer) GetPvtDataByNum

func (_m *Committer) GetPvtDataByNum(blockNum uint64, filter ledger.PvtNsCollFilter) ([]*ledger.TxPvtData, error)

getpvtdatabynum提供了一个具有给定字段的模拟函数:blocknum、filter

func (*Committer) LedgerHeight

func (_m *Committer) LedgerHeight() (uint64, error)

LedgerHeight为给定字段提供模拟函数:

type ConfigHistoryRetriever

type ConfigHistoryRetriever struct {
	mock.Mock
}

configHistoryRetriever是为configHistoryRetriever类型自动生成的模拟类型

func (*ConfigHistoryRetriever) CollectionConfigAt

func (_m *ConfigHistoryRetriever) CollectionConfigAt(blockNum uint64, chaincodeName string) (*ledger.CollectionConfigInfo, error)

collectionconfigat提供具有给定字段的模拟函数:blocknum、chaincodename

func (*ConfigHistoryRetriever) MostRecentCollectionConfigBelow

func (_m *ConfigHistoryRetriever) MostRecentCollectionConfigBelow(blockNum uint64, chaincodeName string) (*ledger.CollectionConfigInfo, error)

mostrecentcollectionconfigbelow提供了一个具有给定字段的模拟函数:blocknum、chaincodename

type DataStore

type DataStore struct {
	mock.Mock
}

数据存储是数据存储类型的自动生成的模拟类型

func (*DataStore) GetConfigHistoryRetriever

func (_m *DataStore) GetConfigHistoryRetriever() (ledger.ConfigHistoryRetriever, error)

getconfigHistoryRetriever提供具有给定字段的模拟函数:

func (*DataStore) GetPvtDataByNum

func (_m *DataStore) GetPvtDataByNum(blockNum uint64, filter ledger.PvtNsCollFilter) ([]*ledger.TxPvtData, error)

getpvtdatabynum提供了一个具有给定字段的模拟函数:blocknum、filter

func (*DataStore) GetTxPvtRWSetByTxid

func (_m *DataStore) GetTxPvtRWSetByTxid(txid string, filter ledger.PvtNsCollFilter) (transientstore.RWSetScanner, error)

gettxpvtrwsetbytxid提供具有给定字段的模拟函数:txid、filter

func (*DataStore) LedgerHeight

func (_m *DataStore) LedgerHeight() (uint64, error)

LedgerHeight为给定字段提供模拟函数:

type MissingPvtDataTracker

type MissingPvtDataTracker struct {
	mock.Mock
}

MissingPvtDataTracker是为MissingPvTDataTracker类型自动生成的模拟类型

func (*MissingPvtDataTracker) GetMissingPvtDataInfoForMostRecentBlocks

func (_m *MissingPvtDataTracker) GetMissingPvtDataInfoForMostRecentBlocks(maxBlocks int) (ledger.MissingPvtDataInfo, error)

GetMissingPvtDataInfoFormsToRecentBlocks提供具有给定字段的模拟函数:MaxBlocks

type RWSetScanner

type RWSetScanner struct {
	mock.Mock
}

rwsetscanner是为rwsetscanner类型自动生成的模拟类型

func (*RWSetScanner) Close

func (_m *RWSetScanner) Close()

close为给定字段提供模拟函数:

func (*RWSetScanner) Next

接下来提供一个具有给定字段的模拟函数:

func (*RWSetScanner) NextWithConfig

NextWithConfig提供了一个具有给定字段的模拟函数:

type ReconciliationFetcher

type ReconciliationFetcher struct {
	mock.Mock
}

ReconciliationFetcher是为ReconciliationFetcher类型自动生成的模拟类型。

func (*ReconciliationFetcher) FetchReconciledItems

func (_m *ReconciliationFetcher) FetchReconciledItems(dig2collectionConfig common.Dig2CollectionConfig) (*common.FetchedPvtDataContainer, error)

FetchReconciledItems为给定字段提供模拟函数:dig2collectionconfig

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL