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: 13 Imported by: 0

Documentation

Overview

此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 Mokery v1.0.0生成的代码

Mokery v1.0.0生成的代码

Mokery v1.0.0生成的代码

此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 Mokery v1.0.0生成的代码

此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 Mokery v1.0.0生成的代码

Mokery v1.0.0生成的代码

此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 Mokery v1.0.0生成的代码

此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 伪造者生成的代码。不要编辑。

此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 Mokery 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是ChannelStateRetriever类型的自动生成的模拟类型

func (*ChannelStateRetriever) NewQueryCreator

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

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

type Plugin

type Plugin struct {
	mock.Mock
}

插件是插件类型的自动生成的模拟类型

func (*Plugin) Endorse

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

认可提供了一个具有给定字段的模拟函数:有效载荷,sp

func (*Plugin) Init

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

init提供了一个具有给定字段的模拟函数:依赖项

type PluginFactory

type PluginFactory struct {
	mock.Mock
}

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

func (*PluginFactory) New

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

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

type PluginMapper

type PluginMapper struct {
	mock.Mock
}

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

func (*PluginMapper) PluginFactoryByName

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

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

type QueryCreator

type QueryCreator struct {
	mock.Mock
}

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

func (*QueryCreator) NewQueryExecutor

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

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

type SigningIdentityFetcher

type SigningIdentityFetcher struct {
	mock.Mock
}

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

func (*SigningIdentityFetcher) SigningIdentityForRequest

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

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

type Store

type Store struct {
	mock.Mock
}

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

func (*Store) GetMinTransientBlkHt

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

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

func (*Store) GetTxPvtRWSetByTxid

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

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

func (*Store) Persist

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

Persist为给定字段提供模拟函数:txid、blockheight、privateSimulationResults

func (*Store) PersistWithConfig

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

PersisteWithConfig提供具有给定字段的模拟函数:txid、blockheight、privateSimulationResultsWithConfig

func (*Store) PurgeByHeight

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

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

func (*Store) PurgeByTxids

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

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

func (*Store) Shutdown

func (_m *Store) Shutdown()

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

type Support

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

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

func (*Support) CheckACLCallCount

func (fake *Support) CheckACLCallCount() int

func (*Support) CheckACLReturns

func (fake *Support) CheckACLReturns(result1 error)

func (*Support) CheckACLReturnsOnCall

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

func (*Support) CheckInstantiationPolicy

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

func (*Support) CheckInstantiationPolicyArgsForCall

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

func (*Support) CheckInstantiationPolicyCallCount

func (fake *Support) CheckInstantiationPolicyCallCount() int

func (*Support) CheckInstantiationPolicyReturns

func (fake *Support) CheckInstantiationPolicyReturns(result1 error)

func (*Support) CheckInstantiationPolicyReturnsOnCall

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

func (*Support) EndorseWithPlugin

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

func (*Support) EndorseWithPluginArgsForCall

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

func (*Support) EndorseWithPluginCallCount

func (fake *Support) EndorseWithPluginCallCount() int

func (*Support) EndorseWithPluginReturns

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

func (*Support) EndorseWithPluginReturnsOnCall

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

func (*Support) Execute

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) ExecuteCallCount

func (fake *Support) ExecuteCallCount() int

func (*Support) ExecuteLegacyInit

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) ExecuteLegacyInitCallCount

func (fake *Support) ExecuteLegacyInitCallCount() int

func (*Support) ExecuteLegacyInitReturns

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

func (*Support) ExecuteLegacyInitReturnsOnCall

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

func (*Support) ExecuteReturns

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

func (*Support) ExecuteReturnsOnCall

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

func (*Support) GetApplicationConfig

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

func (*Support) GetApplicationConfigArgsForCall

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

func (*Support) GetApplicationConfigCallCount

func (fake *Support) GetApplicationConfigCallCount() int

func (*Support) GetApplicationConfigReturns

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

func (*Support) GetApplicationConfigReturnsOnCall

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

func (*Support) GetChaincodeDefinition

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

func (*Support) GetChaincodeDefinitionArgsForCall

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

func (*Support) GetChaincodeDefinitionCallCount

func (fake *Support) GetChaincodeDefinitionCallCount() int

func (*Support) GetChaincodeDefinitionReturns

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

func (*Support) GetChaincodeDefinitionReturnsOnCall

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

func (*Support) GetChaincodeDeploymentSpecFS

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

func (*Support) GetChaincodeDeploymentSpecFSArgsForCall

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

func (*Support) GetChaincodeDeploymentSpecFSCallCount

func (fake *Support) GetChaincodeDeploymentSpecFSCallCount() int

func (*Support) GetChaincodeDeploymentSpecFSReturns

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

func (*Support) GetChaincodeDeploymentSpecFSReturnsOnCall

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

func (*Support) GetHistoryQueryExecutor

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

func (*Support) GetHistoryQueryExecutorArgsForCall

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

func (*Support) GetHistoryQueryExecutorCallCount

func (fake *Support) GetHistoryQueryExecutorCallCount() int

func (*Support) GetHistoryQueryExecutorReturns

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

func (*Support) GetHistoryQueryExecutorReturnsOnCall

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

func (*Support) GetLedgerHeight

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

func (*Support) GetLedgerHeightArgsForCall

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

func (*Support) GetLedgerHeightCallCount

func (fake *Support) GetLedgerHeightCallCount() int

func (*Support) GetLedgerHeightReturns

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

func (*Support) GetLedgerHeightReturnsOnCall

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

func (*Support) GetTransactionByID

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

func (*Support) GetTransactionByIDArgsForCall

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

func (*Support) GetTransactionByIDCallCount

func (fake *Support) GetTransactionByIDCallCount() int

func (*Support) GetTransactionByIDReturns

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

func (*Support) GetTransactionByIDReturnsOnCall

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

func (*Support) GetTxSimulator

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

func (*Support) GetTxSimulatorArgsForCall

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

func (*Support) GetTxSimulatorCallCount

func (fake *Support) GetTxSimulatorCallCount() int

func (*Support) GetTxSimulatorReturns

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

func (*Support) GetTxSimulatorReturnsOnCall

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

func (*Support) Invocations

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

func (*Support) IsJavaCC

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

func (*Support) IsJavaCCArgsForCall

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

func (*Support) IsJavaCCCallCount

func (fake *Support) IsJavaCCCallCount() int

func (*Support) IsJavaCCReturns

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

func (*Support) IsJavaCCReturnsOnCall

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

func (*Support) IsSysCC

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

func (*Support) IsSysCCAndNotInvokableExternal

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

func (*Support) IsSysCCAndNotInvokableExternalArgsForCall

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

func (*Support) IsSysCCAndNotInvokableExternalCallCount

func (fake *Support) IsSysCCAndNotInvokableExternalCallCount() int

func (*Support) IsSysCCAndNotInvokableExternalReturns

func (fake *Support) IsSysCCAndNotInvokableExternalReturns(result1 bool)

func (*Support) IsSysCCAndNotInvokableExternalReturnsOnCall

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

func (*Support) IsSysCCArgsForCall

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

func (*Support) IsSysCCCallCount

func (fake *Support) IsSysCCCallCount() int

func (*Support) IsSysCCReturns

func (fake *Support) IsSysCCReturns(result1 bool)

func (*Support) IsSysCCReturnsOnCall

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

func (*Support) NewQueryCreator

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

func (*Support) NewQueryCreatorArgsForCall

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

func (*Support) NewQueryCreatorCallCount

func (fake *Support) NewQueryCreatorCallCount() int

func (*Support) NewQueryCreatorReturns

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

func (*Support) NewQueryCreatorReturnsOnCall

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

func (*Support) Serialize

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

func (*Support) SerializeCallCount

func (fake *Support) SerializeCallCount() int

func (*Support) SerializeReturns

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

func (*Support) SerializeReturnsOnCall

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

func (*Support) Sign

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

func (*Support) SignArgsForCall

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

func (*Support) SignCallCount

func (fake *Support) SignCallCount() int

func (*Support) SignReturns

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

func (*Support) SignReturnsOnCall

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

type TransientStoreRetriever

type TransientStoreRetriever struct {
	mock.Mock
}

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

func (*TransientStoreRetriever) StoreForChannel

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

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

Jump to

Keyboard shortcuts

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