mocks

package
v1.3.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by counterfeiter. DO NOT EDIT.

Code generated by mockery v1.0.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelStateRetriever

type ChannelStateRetriever struct {
	mock.Mock
}

ChannelStateRetriever is an autogenerated mock type for the ChannelStateRetriever type

func (*ChannelStateRetriever) NewQueryCreator

func (_m *ChannelStateRetriever) NewQueryCreator(channel string) (endorser.QueryCreator, error)

NewQueryCreator provides a mock function with given fields: channel

type Plugin

type Plugin struct {
	mock.Mock
}

Plugin is an autogenerated mock type for the Plugin type

func (*Plugin) Endorse

func (_m *Plugin) Endorse(payload []byte, sp *peer.SignedProposal) (*peer.Endorsement, []byte, error)

Endorse provides a mock function with given fields: payload, sp

func (*Plugin) Init

func (_m *Plugin) Init(dependencies ...endorsement.Dependency) error

Init provides a mock function with given fields: dependencies

type PluginFactory

type PluginFactory struct {
	mock.Mock
}

PluginFactory is an autogenerated mock type for the PluginFactory type

func (*PluginFactory) New

func (_m *PluginFactory) New() endorsement.Plugin

New provides a mock function with given fields:

type PluginMapper

type PluginMapper struct {
	mock.Mock
}

PluginMapper is an autogenerated mock type for the PluginMapper type

func (*PluginMapper) PluginFactoryByName

func (_m *PluginMapper) PluginFactoryByName(name endorser.PluginName) endorsement.PluginFactory

PluginFactoryByName provides a mock function with given fields: name

type QueryCreator

type QueryCreator struct {
	mock.Mock
}

QueryCreator is an autogenerated mock type for the QueryCreator type

func (*QueryCreator) NewQueryExecutor

func (_m *QueryCreator) NewQueryExecutor() (ledger.QueryExecutor, error)

NewQueryExecutor provides a mock function with given fields:

type SigningIdentityFetcher

type SigningIdentityFetcher struct {
	mock.Mock
}

SigningIdentityFetcher is an autogenerated mock type for the SigningIdentityFetcher type

func (*SigningIdentityFetcher) SigningIdentityForRequest

func (_m *SigningIdentityFetcher) SigningIdentityForRequest(_a0 *peer.SignedProposal) (endorsement.SigningIdentity, error)

SigningIdentityForRequest provides a mock function with given fields: _a0

type Store added in v1.2.0

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func (*Store) GetMinTransientBlkHt added in v1.2.0

func (_m *Store) GetMinTransientBlkHt() (uint64, error)

GetMinTransientBlkHt provides a mock function with given fields:

func (*Store) GetTxPvtRWSetByTxid added in v1.2.0

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

GetTxPvtRWSetByTxid provides a mock function with given fields: txid, filter

func (*Store) Persist added in v1.2.0

func (_m *Store) Persist(txid string, blockHeight uint64, privateSimulationResults *rwset.TxPvtReadWriteSet) error

Persist provides a mock function with given fields: txid, blockHeight, privateSimulationResults

func (*Store) PersistWithConfig added in v1.2.0

func (_m *Store) PersistWithConfig(txid string, blockHeight uint64, privateSimulationResultsWithConfig *protostransientstore.TxPvtReadWriteSetWithConfigInfo) error

PersistWithConfig provides a mock function with given fields: txid, blockHeight, privateSimulationResultsWithConfig

func (*Store) PurgeByHeight added in v1.2.0

func (_m *Store) PurgeByHeight(maxBlockNumToRetain uint64) error

PurgeByHeight provides a mock function with given fields: maxBlockNumToRetain

func (*Store) PurgeByTxids added in v1.2.0

func (_m *Store) PurgeByTxids(txids []string) error

PurgeByTxids provides a mock function with given fields: txids

func (*Store) Shutdown added in v1.2.0

func (_m *Store) Shutdown()

Shutdown provides a mock function with given fields:

type Support added in v1.1.1

type Support struct {
	SignStub func(message []byte) ([]byte, error)

	SerializeStub func() ([]byte, error)

	IsSysCCAndNotInvokableExternalStub func(name string) bool

	GetTxSimulatorStub func(ledgername string, txid string) (ledger.TxSimulator, error)

	GetHistoryQueryExecutorStub func(ledgername string) (ledger.HistoryQueryExecutor, error)

	GetTransactionByIDStub func(chid, txID string) (*pb.ProcessedTransaction, error)

	IsSysCCStub func(name string) bool

	ExecuteStub func(txParams *ccprovider.TransactionParams, cid, name, version, txid string, signedProp *pb.SignedProposal, prop *pb.Proposal, input *pb.ChaincodeInput) (*pb.Response, *pb.ChaincodeEvent, error)

	ExecuteLegacyInitStub func(txParams *ccprovider.TransactionParams, cid, name, version, txid string, signedProp *pb.SignedProposal, prop *pb.Proposal, spec *pb.ChaincodeDeploymentSpec) (*pb.Response, *pb.ChaincodeEvent, error)

	GetChaincodeDefinitionStub func(chaincodeID string, txsim ledger.QueryExecutor) (ccprovider.ChaincodeDefinition, error)

	CheckACLStub func(signedProp *pb.SignedProposal, chdr *common.ChannelHeader, shdr *common.SignatureHeader, hdrext *pb.ChaincodeHeaderExtension) error

	IsJavaCCStub func(buf []byte) (bool, error)

	CheckInstantiationPolicyStub func(name, version string, cd ccprovider.ChaincodeDefinition) error

	GetChaincodeDeploymentSpecFSStub func(cds *pb.ChaincodeDeploymentSpec) (*pb.ChaincodeDeploymentSpec, error)

	GetApplicationConfigStub func(cid string) (channelconfig.Application, bool)

	NewQueryCreatorStub func(channel string) (endorser_test.QueryCreator, error)

	EndorseWithPluginStub func(ctx endorser_test.Context) (*pb.ProposalResponse, error)

	GetLedgerHeightStub func(channelID string) (uint64, error)
	// contains filtered or unexported fields
}

func (*Support) CheckACL added in v1.1.1

func (fake *Support) CheckACL(signedProp *pb.SignedProposal, chdr *common.ChannelHeader, shdr *common.SignatureHeader, hdrext *pb.ChaincodeHeaderExtension) error

func (*Support) CheckACLArgsForCall added in v1.1.1

func (*Support) CheckACLCallCount added in v1.1.1

func (fake *Support) CheckACLCallCount() int

func (*Support) CheckACLReturns added in v1.1.1

func (fake *Support) CheckACLReturns(result1 error)

func (*Support) CheckACLReturnsOnCall added in v1.1.1

func (fake *Support) CheckACLReturnsOnCall(i int, result1 error)

func (*Support) CheckInstantiationPolicy added in v1.1.1

func (fake *Support) CheckInstantiationPolicy(name string, version string, cd ccprovider.ChaincodeDefinition) error

func (*Support) CheckInstantiationPolicyArgsForCall added in v1.1.1

func (fake *Support) CheckInstantiationPolicyArgsForCall(i int) (string, string, ccprovider.ChaincodeDefinition)

func (*Support) CheckInstantiationPolicyCallCount added in v1.1.1

func (fake *Support) CheckInstantiationPolicyCallCount() int

func (*Support) CheckInstantiationPolicyReturns added in v1.1.1

func (fake *Support) CheckInstantiationPolicyReturns(result1 error)

func (*Support) CheckInstantiationPolicyReturnsOnCall added in v1.1.1

func (fake *Support) CheckInstantiationPolicyReturnsOnCall(i int, result1 error)

func (*Support) EndorseWithPlugin added in v1.2.0

func (fake *Support) EndorseWithPlugin(ctx endorser_test.Context) (*pb.ProposalResponse, error)

func (*Support) EndorseWithPluginArgsForCall added in v1.2.0

func (fake *Support) EndorseWithPluginArgsForCall(i int) endorser_test.Context

func (*Support) EndorseWithPluginCallCount added in v1.2.0

func (fake *Support) EndorseWithPluginCallCount() int

func (*Support) EndorseWithPluginReturns added in v1.2.0

func (fake *Support) EndorseWithPluginReturns(result1 *pb.ProposalResponse, result2 error)

func (*Support) EndorseWithPluginReturnsOnCall added in v1.2.0

func (fake *Support) EndorseWithPluginReturnsOnCall(i int, result1 *pb.ProposalResponse, result2 error)

func (*Support) Execute added in v1.1.1

func (fake *Support) Execute(txParams *ccprovider.TransactionParams, cid string, name string, version string, txid string, signedProp *pb.SignedProposal, prop *pb.Proposal, input *pb.ChaincodeInput) (*pb.Response, *pb.ChaincodeEvent, error)

func (*Support) ExecuteArgsForCall added in v1.1.1

func (*Support) ExecuteCallCount added in v1.1.1

func (fake *Support) ExecuteCallCount() int

func (*Support) ExecuteLegacyInit added in v1.3.0

func (fake *Support) ExecuteLegacyInit(txParams *ccprovider.TransactionParams, cid string, name string, version string, txid string, signedProp *pb.SignedProposal, prop *pb.Proposal, spec *pb.ChaincodeDeploymentSpec) (*pb.Response, *pb.ChaincodeEvent, error)

func (*Support) ExecuteLegacyInitArgsForCall added in v1.3.0

func (*Support) ExecuteLegacyInitCallCount added in v1.3.0

func (fake *Support) ExecuteLegacyInitCallCount() int

func (*Support) ExecuteLegacyInitReturns added in v1.3.0

func (fake *Support) ExecuteLegacyInitReturns(result1 *pb.Response, result2 *pb.ChaincodeEvent, result3 error)

func (*Support) ExecuteLegacyInitReturnsOnCall added in v1.3.0

func (fake *Support) ExecuteLegacyInitReturnsOnCall(i int, result1 *pb.Response, result2 *pb.ChaincodeEvent, result3 error)

func (*Support) ExecuteReturns added in v1.1.1

func (fake *Support) ExecuteReturns(result1 *pb.Response, result2 *pb.ChaincodeEvent, result3 error)

func (*Support) ExecuteReturnsOnCall added in v1.1.1

func (fake *Support) ExecuteReturnsOnCall(i int, result1 *pb.Response, result2 *pb.ChaincodeEvent, result3 error)

func (*Support) GetApplicationConfig added in v1.1.1

func (fake *Support) GetApplicationConfig(cid string) (channelconfig.Application, bool)

func (*Support) GetApplicationConfigArgsForCall added in v1.1.1

func (fake *Support) GetApplicationConfigArgsForCall(i int) string

func (*Support) GetApplicationConfigCallCount added in v1.1.1

func (fake *Support) GetApplicationConfigCallCount() int

func (*Support) GetApplicationConfigReturns added in v1.1.1

func (fake *Support) GetApplicationConfigReturns(result1 channelconfig.Application, result2 bool)

func (*Support) GetApplicationConfigReturnsOnCall added in v1.1.1

func (fake *Support) GetApplicationConfigReturnsOnCall(i int, result1 channelconfig.Application, result2 bool)

func (*Support) GetChaincodeDefinition added in v1.1.1

func (fake *Support) GetChaincodeDefinition(chaincodeID string, txsim ledger.QueryExecutor) (ccprovider.ChaincodeDefinition, error)

func (*Support) GetChaincodeDefinitionArgsForCall added in v1.1.1

func (fake *Support) GetChaincodeDefinitionArgsForCall(i int) (string, ledger.QueryExecutor)

func (*Support) GetChaincodeDefinitionCallCount added in v1.1.1

func (fake *Support) GetChaincodeDefinitionCallCount() int

func (*Support) GetChaincodeDefinitionReturns added in v1.1.1

func (fake *Support) GetChaincodeDefinitionReturns(result1 ccprovider.ChaincodeDefinition, result2 error)

func (*Support) GetChaincodeDefinitionReturnsOnCall added in v1.1.1

func (fake *Support) GetChaincodeDefinitionReturnsOnCall(i int, result1 ccprovider.ChaincodeDefinition, result2 error)

func (*Support) GetChaincodeDeploymentSpecFS added in v1.1.1

func (fake *Support) GetChaincodeDeploymentSpecFS(cds *pb.ChaincodeDeploymentSpec) (*pb.ChaincodeDeploymentSpec, error)

func (*Support) GetChaincodeDeploymentSpecFSArgsForCall added in v1.1.1

func (fake *Support) GetChaincodeDeploymentSpecFSArgsForCall(i int) *pb.ChaincodeDeploymentSpec

func (*Support) GetChaincodeDeploymentSpecFSCallCount added in v1.1.1

func (fake *Support) GetChaincodeDeploymentSpecFSCallCount() int

func (*Support) GetChaincodeDeploymentSpecFSReturns added in v1.1.1

func (fake *Support) GetChaincodeDeploymentSpecFSReturns(result1 *pb.ChaincodeDeploymentSpec, result2 error)

func (*Support) GetChaincodeDeploymentSpecFSReturnsOnCall added in v1.1.1

func (fake *Support) GetChaincodeDeploymentSpecFSReturnsOnCall(i int, result1 *pb.ChaincodeDeploymentSpec, result2 error)

func (*Support) GetHistoryQueryExecutor added in v1.1.1

func (fake *Support) GetHistoryQueryExecutor(ledgername string) (ledger.HistoryQueryExecutor, error)

func (*Support) GetHistoryQueryExecutorArgsForCall added in v1.1.1

func (fake *Support) GetHistoryQueryExecutorArgsForCall(i int) string

func (*Support) GetHistoryQueryExecutorCallCount added in v1.1.1

func (fake *Support) GetHistoryQueryExecutorCallCount() int

func (*Support) GetHistoryQueryExecutorReturns added in v1.1.1

func (fake *Support) GetHistoryQueryExecutorReturns(result1 ledger.HistoryQueryExecutor, result2 error)

func (*Support) GetHistoryQueryExecutorReturnsOnCall added in v1.1.1

func (fake *Support) GetHistoryQueryExecutorReturnsOnCall(i int, result1 ledger.HistoryQueryExecutor, result2 error)

func (*Support) GetLedgerHeight added in v1.2.0

func (fake *Support) GetLedgerHeight(channelID string) (uint64, error)

func (*Support) GetLedgerHeightArgsForCall added in v1.2.0

func (fake *Support) GetLedgerHeightArgsForCall(i int) string

func (*Support) GetLedgerHeightCallCount added in v1.2.0

func (fake *Support) GetLedgerHeightCallCount() int

func (*Support) GetLedgerHeightReturns added in v1.2.0

func (fake *Support) GetLedgerHeightReturns(result1 uint64, result2 error)

func (*Support) GetLedgerHeightReturnsOnCall added in v1.2.0

func (fake *Support) GetLedgerHeightReturnsOnCall(i int, result1 uint64, result2 error)

func (*Support) GetTransactionByID added in v1.1.1

func (fake *Support) GetTransactionByID(chid string, txID string) (*pb.ProcessedTransaction, error)

func (*Support) GetTransactionByIDArgsForCall added in v1.1.1

func (fake *Support) GetTransactionByIDArgsForCall(i int) (string, string)

func (*Support) GetTransactionByIDCallCount added in v1.1.1

func (fake *Support) GetTransactionByIDCallCount() int

func (*Support) GetTransactionByIDReturns added in v1.1.1

func (fake *Support) GetTransactionByIDReturns(result1 *pb.ProcessedTransaction, result2 error)

func (*Support) GetTransactionByIDReturnsOnCall added in v1.1.1

func (fake *Support) GetTransactionByIDReturnsOnCall(i int, result1 *pb.ProcessedTransaction, result2 error)

func (*Support) GetTxSimulator added in v1.1.1

func (fake *Support) GetTxSimulator(ledgername string, txid string) (ledger.TxSimulator, error)

func (*Support) GetTxSimulatorArgsForCall added in v1.1.1

func (fake *Support) GetTxSimulatorArgsForCall(i int) (string, string)

func (*Support) GetTxSimulatorCallCount added in v1.1.1

func (fake *Support) GetTxSimulatorCallCount() int

func (*Support) GetTxSimulatorReturns added in v1.1.1

func (fake *Support) GetTxSimulatorReturns(result1 ledger.TxSimulator, result2 error)

func (*Support) GetTxSimulatorReturnsOnCall added in v1.1.1

func (fake *Support) GetTxSimulatorReturnsOnCall(i int, result1 ledger.TxSimulator, result2 error)

func (*Support) Invocations added in v1.1.1

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

func (*Support) IsJavaCC added in v1.1.1

func (fake *Support) IsJavaCC(buf []byte) (bool, error)

func (*Support) IsJavaCCArgsForCall added in v1.1.1

func (fake *Support) IsJavaCCArgsForCall(i int) []byte

func (*Support) IsJavaCCCallCount added in v1.1.1

func (fake *Support) IsJavaCCCallCount() int

func (*Support) IsJavaCCReturns added in v1.1.1

func (fake *Support) IsJavaCCReturns(result1 bool, result2 error)

func (*Support) IsJavaCCReturnsOnCall added in v1.1.1

func (fake *Support) IsJavaCCReturnsOnCall(i int, result1 bool, result2 error)

func (*Support) IsSysCC added in v1.1.1

func (fake *Support) IsSysCC(name string) bool

func (*Support) IsSysCCAndNotInvokableExternal added in v1.1.1

func (fake *Support) IsSysCCAndNotInvokableExternal(name string) bool

func (*Support) IsSysCCAndNotInvokableExternalArgsForCall added in v1.1.1

func (fake *Support) IsSysCCAndNotInvokableExternalArgsForCall(i int) string

func (*Support) IsSysCCAndNotInvokableExternalCallCount added in v1.1.1

func (fake *Support) IsSysCCAndNotInvokableExternalCallCount() int

func (*Support) IsSysCCAndNotInvokableExternalReturns added in v1.1.1

func (fake *Support) IsSysCCAndNotInvokableExternalReturns(result1 bool)

func (*Support) IsSysCCAndNotInvokableExternalReturnsOnCall added in v1.1.1

func (fake *Support) IsSysCCAndNotInvokableExternalReturnsOnCall(i int, result1 bool)

func (*Support) IsSysCCArgsForCall added in v1.1.1

func (fake *Support) IsSysCCArgsForCall(i int) string

func (*Support) IsSysCCCallCount added in v1.1.1

func (fake *Support) IsSysCCCallCount() int

func (*Support) IsSysCCReturns added in v1.1.1

func (fake *Support) IsSysCCReturns(result1 bool)

func (*Support) IsSysCCReturnsOnCall added in v1.1.1

func (fake *Support) IsSysCCReturnsOnCall(i int, result1 bool)

func (*Support) NewQueryCreator added in v1.2.0

func (fake *Support) NewQueryCreator(channel string) (endorser_test.QueryCreator, error)

func (*Support) NewQueryCreatorArgsForCall added in v1.2.0

func (fake *Support) NewQueryCreatorArgsForCall(i int) string

func (*Support) NewQueryCreatorCallCount added in v1.2.0

func (fake *Support) NewQueryCreatorCallCount() int

func (*Support) NewQueryCreatorReturns added in v1.2.0

func (fake *Support) NewQueryCreatorReturns(result1 endorser_test.QueryCreator, result2 error)

func (*Support) NewQueryCreatorReturnsOnCall added in v1.2.0

func (fake *Support) NewQueryCreatorReturnsOnCall(i int, result1 endorser_test.QueryCreator, result2 error)

func (*Support) Serialize added in v1.2.0

func (fake *Support) Serialize() ([]byte, error)

func (*Support) SerializeCallCount added in v1.2.0

func (fake *Support) SerializeCallCount() int

func (*Support) SerializeReturns added in v1.2.0

func (fake *Support) SerializeReturns(result1 []byte, result2 error)

func (*Support) SerializeReturnsOnCall added in v1.2.0

func (fake *Support) SerializeReturnsOnCall(i int, result1 []byte, result2 error)

func (*Support) Sign added in v1.2.0

func (fake *Support) Sign(message []byte) ([]byte, error)

func (*Support) SignArgsForCall added in v1.2.0

func (fake *Support) SignArgsForCall(i int) []byte

func (*Support) SignCallCount added in v1.2.0

func (fake *Support) SignCallCount() int

func (*Support) SignReturns added in v1.2.0

func (fake *Support) SignReturns(result1 []byte, result2 error)

func (*Support) SignReturnsOnCall added in v1.2.0

func (fake *Support) SignReturnsOnCall(i int, result1 []byte, result2 error)

type TransientStoreRetriever

type TransientStoreRetriever struct {
	mock.Mock
}

TransientStoreRetriever is an autogenerated mock type for the TransientStoreRetriever type

func (*TransientStoreRetriever) StoreForChannel

func (_m *TransientStoreRetriever) StoreForChannel(channel string) transientstore.Store

StoreForChannel provides a mock function with given fields: channel

Jump to

Keyboard shortcuts

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