mock

package
v0.0.0-...-ca9db4f Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

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 GetLedger

type GetLedger struct {
	Stub func(string) ledger.PeerLedger
	// contains filtered or unexported fields
}

func (*GetLedger) ArgsForCall

func (fake *GetLedger) ArgsForCall(i int) string

func (*GetLedger) CallCount

func (fake *GetLedger) CallCount() int

func (*GetLedger) Calls

func (fake *GetLedger) Calls(stub func(string) ledger.PeerLedger)

func (*GetLedger) Invocations

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

func (*GetLedger) Returns

func (fake *GetLedger) Returns(result1 ledger.PeerLedger)

func (*GetLedger) ReturnsOnCall

func (fake *GetLedger) ReturnsOnCall(i int, result1 ledger.PeerLedger)

func (*GetLedger) Spy

func (fake *GetLedger) Spy(arg1 string) ledger.PeerLedger

type PeerLedger

type PeerLedger struct {
	CloseStub func()

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

	CommitWithPvtDataStub func(*ledger.BlockAndPvtData, *ledger.CommitOptions) 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) (*peer.ProcessedTransaction, error)

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

	NewHistoryQueryExecutorStub func() (ledger.HistoryQueryExecutor, error)

	NewQueryExecutorStub func() (ledger.QueryExecutor, error)

	NewTxSimulatorStub func(string) (ledger.TxSimulator, error)

	PrivateDataMinBlockNumStub func() (uint64, error)

	PruneStub func(ledgera.PrunePolicy) error

	PurgePrivateDataStub func(uint64) 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) CommitPvtDataOfOldBlocks

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

func (*PeerLedger) CommitPvtDataOfOldBlocksArgsForCall

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

func (*PeerLedger) CommitPvtDataOfOldBlocksCallCount

func (fake *PeerLedger) CommitPvtDataOfOldBlocksCallCount() int

func (*PeerLedger) CommitPvtDataOfOldBlocksCalls

func (fake *PeerLedger) CommitPvtDataOfOldBlocksCalls(stub func([]*ledger.BlockPvtData) ([]*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) CommitWithPvtData

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

func (*PeerLedger) CommitWithPvtDataArgsForCall

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

func (*PeerLedger) CommitWithPvtDataCallCount

func (fake *PeerLedger) CommitWithPvtDataCallCount() int

func (*PeerLedger) CommitWithPvtDataCalls

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

func (*PeerLedger) CommitWithPvtDataReturns

func (fake *PeerLedger) CommitWithPvtDataReturns(result1 error)

func (*PeerLedger) CommitWithPvtDataReturnsOnCall

func (fake *PeerLedger) CommitWithPvtDataReturnsOnCall(i int, result1 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) (*peer.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) (*peer.ProcessedTransaction, error))

func (*PeerLedger) GetTransactionByIDReturns

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

func (*PeerLedger) GetTransactionByIDReturnsOnCall

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

func (*PeerLedger) GetTxValidationCodeByTxID

func (fake *PeerLedger) GetTxValidationCodeByTxID(arg1 string) (peer.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) (peer.TxValidationCode, error))

func (*PeerLedger) GetTxValidationCodeByTxIDReturns

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

func (*PeerLedger) GetTxValidationCodeByTxIDReturnsOnCall

func (fake *PeerLedger) GetTxValidationCodeByTxIDReturnsOnCall(i int, result1 peer.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)

func (*PeerLedger) PrivateDataMinBlockNum

func (fake *PeerLedger) PrivateDataMinBlockNum() (uint64, error)

func (*PeerLedger) PrivateDataMinBlockNumCallCount

func (fake *PeerLedger) PrivateDataMinBlockNumCallCount() int

func (*PeerLedger) PrivateDataMinBlockNumCalls

func (fake *PeerLedger) PrivateDataMinBlockNumCalls(stub func() (uint64, error))

func (*PeerLedger) PrivateDataMinBlockNumReturns

func (fake *PeerLedger) PrivateDataMinBlockNumReturns(result1 uint64, result2 error)

func (*PeerLedger) PrivateDataMinBlockNumReturnsOnCall

func (fake *PeerLedger) PrivateDataMinBlockNumReturnsOnCall(i int, result1 uint64, result2 error)

func (*PeerLedger) Prune

func (fake *PeerLedger) Prune(arg1 ledgera.PrunePolicy) error

func (*PeerLedger) PruneArgsForCall

func (fake *PeerLedger) PruneArgsForCall(i int) ledgera.PrunePolicy

func (*PeerLedger) PruneCallCount

func (fake *PeerLedger) PruneCallCount() int

func (*PeerLedger) PruneCalls

func (fake *PeerLedger) PruneCalls(stub func(ledgera.PrunePolicy) error)

func (*PeerLedger) PruneReturns

func (fake *PeerLedger) PruneReturns(result1 error)

func (*PeerLedger) PruneReturnsOnCall

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

func (*PeerLedger) PurgePrivateData

func (fake *PeerLedger) PurgePrivateData(arg1 uint64) error

func (*PeerLedger) PurgePrivateDataArgsForCall

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

func (*PeerLedger) PurgePrivateDataCallCount

func (fake *PeerLedger) PurgePrivateDataCallCount() int

func (*PeerLedger) PurgePrivateDataCalls

func (fake *PeerLedger) PurgePrivateDataCalls(stub func(uint64) error)

func (*PeerLedger) PurgePrivateDataReturns

func (fake *PeerLedger) PurgePrivateDataReturns(result1 error)

func (*PeerLedger) PurgePrivateDataReturnsOnCall

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

Jump to

Keyboard shortcuts

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