mocks

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

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 Support

type Support struct {
	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(ctxt context.Context, cid, name, version, txid string, syscc bool, signedProp *pb.SignedProposal, prop *pb.Proposal, spec interface{}) (*pb.Response, *pb.ChaincodeEvent, error)

	GetChaincodeDefinitionStub func(ctx context.Context, chainID string, txid string, signedProp *pb.SignedProposal, prop *pb.Proposal, chaincodeID string, txsim ledger.TxSimulator) (resourcesconfig.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 resourcesconfig.ChaincodeDefinition) error

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

	GetApplicationConfigStub func(cid string) (channelconfig.Application, bool)
	// 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 resourcesconfig.ChaincodeDefinition) error

func (*Support) CheckInstantiationPolicyArgsForCall

func (fake *Support) CheckInstantiationPolicyArgsForCall(i int) (string, string, resourcesconfig.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) Execute

func (fake *Support) Execute(ctxt context.Context, cid string, name string, version string, txid string, syscc bool, signedProp *pb.SignedProposal, prop *pb.Proposal, spec interface{}) (*pb.Response, *pb.ChaincodeEvent, error)

func (*Support) ExecuteArgsForCall

func (fake *Support) ExecuteArgsForCall(i int) (context.Context, string, string, string, string, bool, *pb.SignedProposal, *pb.Proposal, interface{})

func (*Support) ExecuteCallCount

func (fake *Support) ExecuteCallCount() int

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(ctx context.Context, chainID string, txid string, signedProp *pb.SignedProposal, prop *pb.Proposal, chaincodeID string, txsim ledger.TxSimulator) (resourcesconfig.ChaincodeDefinition, error)

func (*Support) GetChaincodeDefinitionArgsForCall

func (fake *Support) GetChaincodeDefinitionArgsForCall(i int) (context.Context, string, string, *pb.SignedProposal, *pb.Proposal, string, ledger.TxSimulator)

func (*Support) GetChaincodeDefinitionCallCount

func (fake *Support) GetChaincodeDefinitionCallCount() int

func (*Support) GetChaincodeDefinitionReturns

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

func (*Support) GetChaincodeDefinitionReturnsOnCall

func (fake *Support) GetChaincodeDefinitionReturnsOnCall(i int, result1 resourcesconfig.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) 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)

Jump to

Keyboard shortcuts

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