fabric: github.com/hyperledger/fabric/core/endorser/mocks Index | Files

package mocks

import "github.com/hyperledger/fabric/core/endorser/mocks"

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

Package Files

channel_state_retriever.go plugin.go plugin_factory.go plugin_mapper.go query_creator.go signing_identity_fetcher.go store.go support.go transient_store_retriever.go

type ChannelStateRetriever Uses

type ChannelStateRetriever struct {
    mock.Mock
}

ChannelStateRetriever is an autogenerated mock type for the ChannelStateRetriever type

func (*ChannelStateRetriever) NewQueryCreator Uses

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

NewQueryCreator provides a mock function with given fields: channel

type Plugin Uses

type Plugin struct {
    mock.Mock
}

Plugin is an autogenerated mock type for the Plugin type

func (*Plugin) Endorse Uses

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 Uses

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

Init provides a mock function with given fields: dependencies

type PluginFactory Uses

type PluginFactory struct {
    mock.Mock
}

PluginFactory is an autogenerated mock type for the PluginFactory type

func (*PluginFactory) New Uses

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

New provides a mock function with given fields:

type PluginMapper Uses

type PluginMapper struct {
    mock.Mock
}

PluginMapper is an autogenerated mock type for the PluginMapper type

func (*PluginMapper) PluginFactoryByName Uses

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

PluginFactoryByName provides a mock function with given fields: name

type QueryCreator Uses

type QueryCreator struct {
    mock.Mock
}

QueryCreator is an autogenerated mock type for the QueryCreator type

func (*QueryCreator) NewQueryExecutor Uses

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

NewQueryExecutor provides a mock function with given fields:

type SigningIdentityFetcher Uses

type SigningIdentityFetcher struct {
    mock.Mock
}

SigningIdentityFetcher is an autogenerated mock type for the SigningIdentityFetcher type

func (*SigningIdentityFetcher) SigningIdentityForRequest Uses

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

SigningIdentityForRequest provides a mock function with given fields: _a0

type Store Uses

type Store struct {
    mock.Mock
}

Store is an autogenerated mock type for the Store type

func (*Store) GetMinTransientBlkHt Uses

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

GetMinTransientBlkHt provides a mock function with given fields:

func (*Store) GetTxPvtRWSetByTxid Uses

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 Uses

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 Uses

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 Uses

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

PurgeByHeight provides a mock function with given fields: maxBlockNumToRetain

func (*Store) PurgeByTxids Uses

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

PurgeByTxids provides a mock function with given fields: txids

func (*Store) Shutdown Uses

func (_m *Store) Shutdown()

Shutdown provides a mock function with given fields:

type Support Uses

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 Uses

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

func (*Support) CheckACLArgsForCall Uses

func (fake *Support) CheckACLArgsForCall(i int) (*pb.SignedProposal, *common.ChannelHeader, *common.SignatureHeader, *pb.ChaincodeHeaderExtension)

func (*Support) CheckACLCallCount Uses

func (fake *Support) CheckACLCallCount() int

func (*Support) CheckACLReturns Uses

func (fake *Support) CheckACLReturns(result1 error)

func (*Support) CheckACLReturnsOnCall Uses

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

func (*Support) CheckInstantiationPolicy Uses

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

func (*Support) CheckInstantiationPolicyArgsForCall Uses

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

func (*Support) CheckInstantiationPolicyCallCount Uses

func (fake *Support) CheckInstantiationPolicyCallCount() int

func (*Support) CheckInstantiationPolicyReturns Uses

func (fake *Support) CheckInstantiationPolicyReturns(result1 error)

func (*Support) CheckInstantiationPolicyReturnsOnCall Uses

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

func (*Support) EndorseWithPlugin Uses

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

func (*Support) EndorseWithPluginArgsForCall Uses

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

func (*Support) EndorseWithPluginCallCount Uses

func (fake *Support) EndorseWithPluginCallCount() int

func (*Support) EndorseWithPluginReturns Uses

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

func (*Support) EndorseWithPluginReturnsOnCall Uses

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

func (*Support) Execute Uses

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 Uses

func (fake *Support) ExecuteArgsForCall(i int) (*ccprovider.TransactionParams, string, string, string, string, *pb.SignedProposal, *pb.Proposal, *pb.ChaincodeInput)

func (*Support) ExecuteCallCount Uses

func (fake *Support) ExecuteCallCount() int

func (*Support) ExecuteLegacyInit Uses

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 Uses

func (fake *Support) ExecuteLegacyInitArgsForCall(i int) (*ccprovider.TransactionParams, string, string, string, string, *pb.SignedProposal, *pb.Proposal, *pb.ChaincodeDeploymentSpec)

func (*Support) ExecuteLegacyInitCallCount Uses

func (fake *Support) ExecuteLegacyInitCallCount() int

func (*Support) ExecuteLegacyInitReturns Uses

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

func (*Support) ExecuteLegacyInitReturnsOnCall Uses

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

func (*Support) ExecuteReturns Uses

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

func (*Support) ExecuteReturnsOnCall Uses

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

func (*Support) GetApplicationConfig Uses

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

func (*Support) GetApplicationConfigArgsForCall Uses

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

func (*Support) GetApplicationConfigCallCount Uses

func (fake *Support) GetApplicationConfigCallCount() int

func (*Support) GetApplicationConfigReturns Uses

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

func (*Support) GetApplicationConfigReturnsOnCall Uses

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

func (*Support) GetChaincodeDefinition Uses

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

func (*Support) GetChaincodeDefinitionArgsForCall Uses

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

func (*Support) GetChaincodeDefinitionCallCount Uses

func (fake *Support) GetChaincodeDefinitionCallCount() int

func (*Support) GetChaincodeDefinitionReturns Uses

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

func (*Support) GetChaincodeDefinitionReturnsOnCall Uses

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

func (*Support) GetChaincodeDeploymentSpecFS Uses

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

func (*Support) GetChaincodeDeploymentSpecFSArgsForCall Uses

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

func (*Support) GetChaincodeDeploymentSpecFSCallCount Uses

func (fake *Support) GetChaincodeDeploymentSpecFSCallCount() int

func (*Support) GetChaincodeDeploymentSpecFSReturns Uses

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

func (*Support) GetChaincodeDeploymentSpecFSReturnsOnCall Uses

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

func (*Support) GetHistoryQueryExecutor Uses

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

func (*Support) GetHistoryQueryExecutorArgsForCall Uses

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

func (*Support) GetHistoryQueryExecutorCallCount Uses

func (fake *Support) GetHistoryQueryExecutorCallCount() int

func (*Support) GetHistoryQueryExecutorReturns Uses

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

func (*Support) GetHistoryQueryExecutorReturnsOnCall Uses

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

func (*Support) GetLedgerHeight Uses

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

func (*Support) GetLedgerHeightArgsForCall Uses

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

func (*Support) GetLedgerHeightCallCount Uses

func (fake *Support) GetLedgerHeightCallCount() int

func (*Support) GetLedgerHeightReturns Uses

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

func (*Support) GetLedgerHeightReturnsOnCall Uses

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

func (*Support) GetTransactionByID Uses

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

func (*Support) GetTransactionByIDArgsForCall Uses

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

func (*Support) GetTransactionByIDCallCount Uses

func (fake *Support) GetTransactionByIDCallCount() int

func (*Support) GetTransactionByIDReturns Uses

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

func (*Support) GetTransactionByIDReturnsOnCall Uses

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

func (*Support) GetTxSimulator Uses

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

func (*Support) GetTxSimulatorArgsForCall Uses

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

func (*Support) GetTxSimulatorCallCount Uses

func (fake *Support) GetTxSimulatorCallCount() int

func (*Support) GetTxSimulatorReturns Uses

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

func (*Support) GetTxSimulatorReturnsOnCall Uses

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

func (*Support) Invocations Uses

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

func (*Support) IsJavaCC Uses

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

func (*Support) IsJavaCCArgsForCall Uses

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

func (*Support) IsJavaCCCallCount Uses

func (fake *Support) IsJavaCCCallCount() int

func (*Support) IsJavaCCReturns Uses

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

func (*Support) IsJavaCCReturnsOnCall Uses

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

func (*Support) IsSysCC Uses

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

func (*Support) IsSysCCAndNotInvokableExternal Uses

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

func (*Support) IsSysCCAndNotInvokableExternalArgsForCall Uses

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

func (*Support) IsSysCCAndNotInvokableExternalCallCount Uses

func (fake *Support) IsSysCCAndNotInvokableExternalCallCount() int

func (*Support) IsSysCCAndNotInvokableExternalReturns Uses

func (fake *Support) IsSysCCAndNotInvokableExternalReturns(result1 bool)

func (*Support) IsSysCCAndNotInvokableExternalReturnsOnCall Uses

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

func (*Support) IsSysCCArgsForCall Uses

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

func (*Support) IsSysCCCallCount Uses

func (fake *Support) IsSysCCCallCount() int

func (*Support) IsSysCCReturns Uses

func (fake *Support) IsSysCCReturns(result1 bool)

func (*Support) IsSysCCReturnsOnCall Uses

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

func (*Support) NewQueryCreator Uses

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

func (*Support) NewQueryCreatorArgsForCall Uses

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

func (*Support) NewQueryCreatorCallCount Uses

func (fake *Support) NewQueryCreatorCallCount() int

func (*Support) NewQueryCreatorReturns Uses

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

func (*Support) NewQueryCreatorReturnsOnCall Uses

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

func (*Support) Serialize Uses

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

func (*Support) SerializeCallCount Uses

func (fake *Support) SerializeCallCount() int

func (*Support) SerializeReturns Uses

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

func (*Support) SerializeReturnsOnCall Uses

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

func (*Support) Sign Uses

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

func (*Support) SignArgsForCall Uses

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

func (*Support) SignCallCount Uses

func (fake *Support) SignCallCount() int

func (*Support) SignReturns Uses

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

func (*Support) SignReturnsOnCall Uses

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

type TransientStoreRetriever Uses

type TransientStoreRetriever struct {
    mock.Mock
}

TransientStoreRetriever is an autogenerated mock type for the TransientStoreRetriever type

func (*TransientStoreRetriever) StoreForChannel Uses

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

StoreForChannel provides a mock function with given fields: channel

Package mocks imports 13 packages (graph). Updated 2018-10-29. Refresh now. Tools for package owners.