mock

package
v2.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectionPolicyChecker

type CollectionPolicyChecker struct {
	CheckCollectionPolicyStub func(uint64, string, string, ledger.ConfigHistoryRetriever, msp.IdentityDeserializer, *protoutil.SignedData) (bool, error)
	// contains filtered or unexported fields
}

func (*CollectionPolicyChecker) CheckCollectionPolicy

func (fake *CollectionPolicyChecker) CheckCollectionPolicy(arg1 uint64, arg2 string, arg3 string, arg4 ledger.ConfigHistoryRetriever, arg5 msp.IdentityDeserializer, arg6 *protoutil.SignedData) (bool, error)

func (*CollectionPolicyChecker) CheckCollectionPolicyArgsForCall

func (*CollectionPolicyChecker) CheckCollectionPolicyCallCount

func (fake *CollectionPolicyChecker) CheckCollectionPolicyCallCount() int

func (*CollectionPolicyChecker) CheckCollectionPolicyCalls

func (*CollectionPolicyChecker) CheckCollectionPolicyReturns

func (fake *CollectionPolicyChecker) CheckCollectionPolicyReturns(result1 bool, result2 error)

func (*CollectionPolicyChecker) CheckCollectionPolicyReturnsOnCall

func (fake *CollectionPolicyChecker) CheckCollectionPolicyReturnsOnCall(i int, result1 bool, result2 error)

func (*CollectionPolicyChecker) Invocations

func (fake *CollectionPolicyChecker) Invocations() map[string][][]interface{}

type IdentityDeserializerManager

type IdentityDeserializerManager struct {
	DeserializerStub func(string) (msp.IdentityDeserializer, error)
	// contains filtered or unexported fields
}

func (*IdentityDeserializerManager) Deserializer

func (fake *IdentityDeserializerManager) Deserializer(arg1 string) (msp.IdentityDeserializer, error)

func (*IdentityDeserializerManager) DeserializerArgsForCall

func (fake *IdentityDeserializerManager) DeserializerArgsForCall(i int) string

func (*IdentityDeserializerManager) DeserializerCallCount

func (fake *IdentityDeserializerManager) DeserializerCallCount() int

func (*IdentityDeserializerManager) DeserializerCalls

func (fake *IdentityDeserializerManager) DeserializerCalls(stub func(string) (msp.IdentityDeserializer, error))

func (*IdentityDeserializerManager) DeserializerReturns

func (fake *IdentityDeserializerManager) DeserializerReturns(result1 msp.IdentityDeserializer, result2 error)

func (*IdentityDeserializerManager) DeserializerReturnsOnCall

func (fake *IdentityDeserializerManager) DeserializerReturnsOnCall(i int, result1 msp.IdentityDeserializer, result2 error)

func (*IdentityDeserializerManager) Invocations

func (fake *IdentityDeserializerManager) Invocations() map[string][][]interface{}

type PeerLedger

type PeerLedger struct {
	CloseStub func()

	CommitLegacyStub func(*ledger.BlockAndPvtData, *ledger.CommitOptions) error

	CommitPvtDataOfOldBlocksStub func([]*ledger.ReconciledPvtdata) ([]*ledger.PvtdataHashMismatch, error)

	DoesPvtDataInfoExistStub func(uint64) (bool, error)

	GetBlockByHashStub func([]byte) (*common.Block, error)

	GetBlockByNumberStub func(uint64) (*common.Block, error)

	GetBlockByTxIDStub func(string) (*common.Block, error)

	GetBlockchainInfoStub func() (*common.BlockchainInfo, error)

	GetBlocksIteratorStub func(uint64) (ledgera.ResultsIterator, error)

	GetConfigHistoryRetrieverStub func() (ledger.ConfigHistoryRetriever, error)

	GetMissingPvtDataTrackerStub func() (ledger.MissingPvtDataTracker, error)

	GetPvtDataAndBlockByNumStub func(uint64, ledger.PvtNsCollFilter) (*ledger.BlockAndPvtData, error)

	GetPvtDataByNumStub func(uint64, ledger.PvtNsCollFilter) ([]*ledger.TxPvtData, error)

	GetTransactionByIDStub func(string) (*peera.ProcessedTransaction, error)

	GetTxValidationCodeByTxIDStub func(string) (peera.TxValidationCode, error)

	NewHistoryQueryExecutorStub func() (ledger.HistoryQueryExecutor, error)

	NewQueryExecutorStub func() (ledger.QueryExecutor, error)

	NewTxSimulatorStub func(string) (ledger.TxSimulator, error)
	// contains filtered or unexported fields
}

func (*PeerLedger) Close

func (fake *PeerLedger) Close()

func (*PeerLedger) CloseCallCount

func (fake *PeerLedger) CloseCallCount() int

func (*PeerLedger) CloseCalls

func (fake *PeerLedger) CloseCalls(stub func())

func (*PeerLedger) CommitLegacy

func (fake *PeerLedger) CommitLegacy(arg1 *ledger.BlockAndPvtData, arg2 *ledger.CommitOptions) error

func (*PeerLedger) CommitLegacyArgsForCall

func (fake *PeerLedger) CommitLegacyArgsForCall(i int) (*ledger.BlockAndPvtData, *ledger.CommitOptions)

func (*PeerLedger) CommitLegacyCallCount

func (fake *PeerLedger) CommitLegacyCallCount() int

func (*PeerLedger) CommitLegacyCalls

func (fake *PeerLedger) CommitLegacyCalls(stub func(*ledger.BlockAndPvtData, *ledger.CommitOptions) error)

func (*PeerLedger) CommitLegacyReturns

func (fake *PeerLedger) CommitLegacyReturns(result1 error)

func (*PeerLedger) CommitLegacyReturnsOnCall

func (fake *PeerLedger) CommitLegacyReturnsOnCall(i int, result1 error)

func (*PeerLedger) CommitPvtDataOfOldBlocks

func (fake *PeerLedger) CommitPvtDataOfOldBlocks(arg1 []*ledger.ReconciledPvtdata) ([]*ledger.PvtdataHashMismatch, error)

func (*PeerLedger) CommitPvtDataOfOldBlocksArgsForCall

func (fake *PeerLedger) CommitPvtDataOfOldBlocksArgsForCall(i int) []*ledger.ReconciledPvtdata

func (*PeerLedger) CommitPvtDataOfOldBlocksCallCount

func (fake *PeerLedger) CommitPvtDataOfOldBlocksCallCount() int

func (*PeerLedger) CommitPvtDataOfOldBlocksCalls

func (fake *PeerLedger) CommitPvtDataOfOldBlocksCalls(stub func([]*ledger.ReconciledPvtdata) ([]*ledger.PvtdataHashMismatch, error))

func (*PeerLedger) CommitPvtDataOfOldBlocksReturns

func (fake *PeerLedger) CommitPvtDataOfOldBlocksReturns(result1 []*ledger.PvtdataHashMismatch, result2 error)

func (*PeerLedger) CommitPvtDataOfOldBlocksReturnsOnCall

func (fake *PeerLedger) CommitPvtDataOfOldBlocksReturnsOnCall(i int, result1 []*ledger.PvtdataHashMismatch, result2 error)

func (*PeerLedger) DoesPvtDataInfoExist

func (fake *PeerLedger) DoesPvtDataInfoExist(arg1 uint64) (bool, error)

func (*PeerLedger) DoesPvtDataInfoExistArgsForCall

func (fake *PeerLedger) DoesPvtDataInfoExistArgsForCall(i int) uint64

func (*PeerLedger) DoesPvtDataInfoExistCallCount

func (fake *PeerLedger) DoesPvtDataInfoExistCallCount() int

func (*PeerLedger) DoesPvtDataInfoExistCalls

func (fake *PeerLedger) DoesPvtDataInfoExistCalls(stub func(uint64) (bool, error))

func (*PeerLedger) DoesPvtDataInfoExistReturns

func (fake *PeerLedger) DoesPvtDataInfoExistReturns(result1 bool, result2 error)

func (*PeerLedger) DoesPvtDataInfoExistReturnsOnCall

func (fake *PeerLedger) DoesPvtDataInfoExistReturnsOnCall(i int, result1 bool, result2 error)

func (*PeerLedger) GetBlockByHash

func (fake *PeerLedger) GetBlockByHash(arg1 []byte) (*common.Block, error)

func (*PeerLedger) GetBlockByHashArgsForCall

func (fake *PeerLedger) GetBlockByHashArgsForCall(i int) []byte

func (*PeerLedger) GetBlockByHashCallCount

func (fake *PeerLedger) GetBlockByHashCallCount() int

func (*PeerLedger) GetBlockByHashCalls

func (fake *PeerLedger) GetBlockByHashCalls(stub func([]byte) (*common.Block, error))

func (*PeerLedger) GetBlockByHashReturns

func (fake *PeerLedger) GetBlockByHashReturns(result1 *common.Block, result2 error)

func (*PeerLedger) GetBlockByHashReturnsOnCall

func (fake *PeerLedger) GetBlockByHashReturnsOnCall(i int, result1 *common.Block, result2 error)

func (*PeerLedger) GetBlockByNumber

func (fake *PeerLedger) GetBlockByNumber(arg1 uint64) (*common.Block, error)

func (*PeerLedger) GetBlockByNumberArgsForCall

func (fake *PeerLedger) GetBlockByNumberArgsForCall(i int) uint64

func (*PeerLedger) GetBlockByNumberCallCount

func (fake *PeerLedger) GetBlockByNumberCallCount() int

func (*PeerLedger) GetBlockByNumberCalls

func (fake *PeerLedger) GetBlockByNumberCalls(stub func(uint64) (*common.Block, error))

func (*PeerLedger) GetBlockByNumberReturns

func (fake *PeerLedger) GetBlockByNumberReturns(result1 *common.Block, result2 error)

func (*PeerLedger) GetBlockByNumberReturnsOnCall

func (fake *PeerLedger) GetBlockByNumberReturnsOnCall(i int, result1 *common.Block, result2 error)

func (*PeerLedger) GetBlockByTxID

func (fake *PeerLedger) GetBlockByTxID(arg1 string) (*common.Block, error)

func (*PeerLedger) GetBlockByTxIDArgsForCall

func (fake *PeerLedger) GetBlockByTxIDArgsForCall(i int) string

func (*PeerLedger) GetBlockByTxIDCallCount

func (fake *PeerLedger) GetBlockByTxIDCallCount() int

func (*PeerLedger) GetBlockByTxIDCalls

func (fake *PeerLedger) GetBlockByTxIDCalls(stub func(string) (*common.Block, error))

func (*PeerLedger) GetBlockByTxIDReturns

func (fake *PeerLedger) GetBlockByTxIDReturns(result1 *common.Block, result2 error)

func (*PeerLedger) GetBlockByTxIDReturnsOnCall

func (fake *PeerLedger) GetBlockByTxIDReturnsOnCall(i int, result1 *common.Block, result2 error)

func (*PeerLedger) GetBlockchainInfo

func (fake *PeerLedger) GetBlockchainInfo() (*common.BlockchainInfo, error)

func (*PeerLedger) GetBlockchainInfoCallCount

func (fake *PeerLedger) GetBlockchainInfoCallCount() int

func (*PeerLedger) GetBlockchainInfoCalls

func (fake *PeerLedger) GetBlockchainInfoCalls(stub func() (*common.BlockchainInfo, error))

func (*PeerLedger) GetBlockchainInfoReturns

func (fake *PeerLedger) GetBlockchainInfoReturns(result1 *common.BlockchainInfo, result2 error)

func (*PeerLedger) GetBlockchainInfoReturnsOnCall

func (fake *PeerLedger) GetBlockchainInfoReturnsOnCall(i int, result1 *common.BlockchainInfo, result2 error)

func (*PeerLedger) GetBlocksIterator

func (fake *PeerLedger) GetBlocksIterator(arg1 uint64) (ledgera.ResultsIterator, error)

func (*PeerLedger) GetBlocksIteratorArgsForCall

func (fake *PeerLedger) GetBlocksIteratorArgsForCall(i int) uint64

func (*PeerLedger) GetBlocksIteratorCallCount

func (fake *PeerLedger) GetBlocksIteratorCallCount() int

func (*PeerLedger) GetBlocksIteratorCalls

func (fake *PeerLedger) GetBlocksIteratorCalls(stub func(uint64) (ledgera.ResultsIterator, error))

func (*PeerLedger) GetBlocksIteratorReturns

func (fake *PeerLedger) GetBlocksIteratorReturns(result1 ledgera.ResultsIterator, result2 error)

func (*PeerLedger) GetBlocksIteratorReturnsOnCall

func (fake *PeerLedger) GetBlocksIteratorReturnsOnCall(i int, result1 ledgera.ResultsIterator, result2 error)

func (*PeerLedger) GetConfigHistoryRetriever

func (fake *PeerLedger) GetConfigHistoryRetriever() (ledger.ConfigHistoryRetriever, error)

func (*PeerLedger) GetConfigHistoryRetrieverCallCount

func (fake *PeerLedger) GetConfigHistoryRetrieverCallCount() int

func (*PeerLedger) GetConfigHistoryRetrieverCalls

func (fake *PeerLedger) GetConfigHistoryRetrieverCalls(stub func() (ledger.ConfigHistoryRetriever, error))

func (*PeerLedger) GetConfigHistoryRetrieverReturns

func (fake *PeerLedger) GetConfigHistoryRetrieverReturns(result1 ledger.ConfigHistoryRetriever, result2 error)

func (*PeerLedger) GetConfigHistoryRetrieverReturnsOnCall

func (fake *PeerLedger) GetConfigHistoryRetrieverReturnsOnCall(i int, result1 ledger.ConfigHistoryRetriever, result2 error)

func (*PeerLedger) GetMissingPvtDataTracker

func (fake *PeerLedger) GetMissingPvtDataTracker() (ledger.MissingPvtDataTracker, error)

func (*PeerLedger) GetMissingPvtDataTrackerCallCount

func (fake *PeerLedger) GetMissingPvtDataTrackerCallCount() int

func (*PeerLedger) GetMissingPvtDataTrackerCalls

func (fake *PeerLedger) GetMissingPvtDataTrackerCalls(stub func() (ledger.MissingPvtDataTracker, error))

func (*PeerLedger) GetMissingPvtDataTrackerReturns

func (fake *PeerLedger) GetMissingPvtDataTrackerReturns(result1 ledger.MissingPvtDataTracker, result2 error)

func (*PeerLedger) GetMissingPvtDataTrackerReturnsOnCall

func (fake *PeerLedger) GetMissingPvtDataTrackerReturnsOnCall(i int, result1 ledger.MissingPvtDataTracker, result2 error)

func (*PeerLedger) GetPvtDataAndBlockByNum

func (fake *PeerLedger) GetPvtDataAndBlockByNum(arg1 uint64, arg2 ledger.PvtNsCollFilter) (*ledger.BlockAndPvtData, error)

func (*PeerLedger) GetPvtDataAndBlockByNumArgsForCall

func (fake *PeerLedger) GetPvtDataAndBlockByNumArgsForCall(i int) (uint64, ledger.PvtNsCollFilter)

func (*PeerLedger) GetPvtDataAndBlockByNumCallCount

func (fake *PeerLedger) GetPvtDataAndBlockByNumCallCount() int

func (*PeerLedger) GetPvtDataAndBlockByNumCalls

func (fake *PeerLedger) GetPvtDataAndBlockByNumCalls(stub func(uint64, ledger.PvtNsCollFilter) (*ledger.BlockAndPvtData, error))

func (*PeerLedger) GetPvtDataAndBlockByNumReturns

func (fake *PeerLedger) GetPvtDataAndBlockByNumReturns(result1 *ledger.BlockAndPvtData, result2 error)

func (*PeerLedger) GetPvtDataAndBlockByNumReturnsOnCall

func (fake *PeerLedger) GetPvtDataAndBlockByNumReturnsOnCall(i int, result1 *ledger.BlockAndPvtData, result2 error)

func (*PeerLedger) GetPvtDataByNum

func (fake *PeerLedger) GetPvtDataByNum(arg1 uint64, arg2 ledger.PvtNsCollFilter) ([]*ledger.TxPvtData, error)

func (*PeerLedger) GetPvtDataByNumArgsForCall

func (fake *PeerLedger) GetPvtDataByNumArgsForCall(i int) (uint64, ledger.PvtNsCollFilter)

func (*PeerLedger) GetPvtDataByNumCallCount

func (fake *PeerLedger) GetPvtDataByNumCallCount() int

func (*PeerLedger) GetPvtDataByNumCalls

func (fake *PeerLedger) GetPvtDataByNumCalls(stub func(uint64, ledger.PvtNsCollFilter) ([]*ledger.TxPvtData, error))

func (*PeerLedger) GetPvtDataByNumReturns

func (fake *PeerLedger) GetPvtDataByNumReturns(result1 []*ledger.TxPvtData, result2 error)

func (*PeerLedger) GetPvtDataByNumReturnsOnCall

func (fake *PeerLedger) GetPvtDataByNumReturnsOnCall(i int, result1 []*ledger.TxPvtData, result2 error)

func (*PeerLedger) GetTransactionByID

func (fake *PeerLedger) GetTransactionByID(arg1 string) (*peera.ProcessedTransaction, error)

func (*PeerLedger) GetTransactionByIDArgsForCall

func (fake *PeerLedger) GetTransactionByIDArgsForCall(i int) string

func (*PeerLedger) GetTransactionByIDCallCount

func (fake *PeerLedger) GetTransactionByIDCallCount() int

func (*PeerLedger) GetTransactionByIDCalls

func (fake *PeerLedger) GetTransactionByIDCalls(stub func(string) (*peera.ProcessedTransaction, error))

func (*PeerLedger) GetTransactionByIDReturns

func (fake *PeerLedger) GetTransactionByIDReturns(result1 *peera.ProcessedTransaction, result2 error)

func (*PeerLedger) GetTransactionByIDReturnsOnCall

func (fake *PeerLedger) GetTransactionByIDReturnsOnCall(i int, result1 *peera.ProcessedTransaction, result2 error)

func (*PeerLedger) GetTxValidationCodeByTxID

func (fake *PeerLedger) GetTxValidationCodeByTxID(arg1 string) (peera.TxValidationCode, error)

func (*PeerLedger) GetTxValidationCodeByTxIDArgsForCall

func (fake *PeerLedger) GetTxValidationCodeByTxIDArgsForCall(i int) string

func (*PeerLedger) GetTxValidationCodeByTxIDCallCount

func (fake *PeerLedger) GetTxValidationCodeByTxIDCallCount() int

func (*PeerLedger) GetTxValidationCodeByTxIDCalls

func (fake *PeerLedger) GetTxValidationCodeByTxIDCalls(stub func(string) (peera.TxValidationCode, error))

func (*PeerLedger) GetTxValidationCodeByTxIDReturns

func (fake *PeerLedger) GetTxValidationCodeByTxIDReturns(result1 peera.TxValidationCode, result2 error)

func (*PeerLedger) GetTxValidationCodeByTxIDReturnsOnCall

func (fake *PeerLedger) GetTxValidationCodeByTxIDReturnsOnCall(i int, result1 peera.TxValidationCode, result2 error)

func (*PeerLedger) Invocations

func (fake *PeerLedger) Invocations() map[string][][]interface{}

func (*PeerLedger) NewHistoryQueryExecutor

func (fake *PeerLedger) NewHistoryQueryExecutor() (ledger.HistoryQueryExecutor, error)

func (*PeerLedger) NewHistoryQueryExecutorCallCount

func (fake *PeerLedger) NewHistoryQueryExecutorCallCount() int

func (*PeerLedger) NewHistoryQueryExecutorCalls

func (fake *PeerLedger) NewHistoryQueryExecutorCalls(stub func() (ledger.HistoryQueryExecutor, error))

func (*PeerLedger) NewHistoryQueryExecutorReturns

func (fake *PeerLedger) NewHistoryQueryExecutorReturns(result1 ledger.HistoryQueryExecutor, result2 error)

func (*PeerLedger) NewHistoryQueryExecutorReturnsOnCall

func (fake *PeerLedger) NewHistoryQueryExecutorReturnsOnCall(i int, result1 ledger.HistoryQueryExecutor, result2 error)

func (*PeerLedger) NewQueryExecutor

func (fake *PeerLedger) NewQueryExecutor() (ledger.QueryExecutor, error)

func (*PeerLedger) NewQueryExecutorCallCount

func (fake *PeerLedger) NewQueryExecutorCallCount() int

func (*PeerLedger) NewQueryExecutorCalls

func (fake *PeerLedger) NewQueryExecutorCalls(stub func() (ledger.QueryExecutor, error))

func (*PeerLedger) NewQueryExecutorReturns

func (fake *PeerLedger) NewQueryExecutorReturns(result1 ledger.QueryExecutor, result2 error)

func (*PeerLedger) NewQueryExecutorReturnsOnCall

func (fake *PeerLedger) NewQueryExecutorReturnsOnCall(i int, result1 ledger.QueryExecutor, result2 error)

func (*PeerLedger) NewTxSimulator

func (fake *PeerLedger) NewTxSimulator(arg1 string) (ledger.TxSimulator, error)

func (*PeerLedger) NewTxSimulatorArgsForCall

func (fake *PeerLedger) NewTxSimulatorArgsForCall(i int) string

func (*PeerLedger) NewTxSimulatorCallCount

func (fake *PeerLedger) NewTxSimulatorCallCount() int

func (*PeerLedger) NewTxSimulatorCalls

func (fake *PeerLedger) NewTxSimulatorCalls(stub func(string) (ledger.TxSimulator, error))

func (*PeerLedger) NewTxSimulatorReturns

func (fake *PeerLedger) NewTxSimulatorReturns(result1 ledger.TxSimulator, result2 error)

func (*PeerLedger) NewTxSimulatorReturnsOnCall

func (fake *PeerLedger) NewTxSimulatorReturnsOnCall(i int, result1 ledger.TxSimulator, result2 error)

Jump to

Keyboard shortcuts

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