mocks

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

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 CasClient added in v0.1.5

type CasClient struct {
	WriteStub func(content []byte) (string, error)

	ReadStub func(address string) ([]byte, error)
	// contains filtered or unexported fields
}

func (*CasClient) Invocations added in v0.1.5

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

func (*CasClient) Read added in v0.1.5

func (fake *CasClient) Read(address string) ([]byte, error)

func (*CasClient) ReadArgsForCall added in v0.1.5

func (fake *CasClient) ReadArgsForCall(i int) string

func (*CasClient) ReadCallCount added in v0.1.5

func (fake *CasClient) ReadCallCount() int

func (*CasClient) ReadReturns added in v0.1.5

func (fake *CasClient) ReadReturns(result1 []byte, result2 error)

func (*CasClient) ReadReturnsOnCall added in v0.1.5

func (fake *CasClient) ReadReturnsOnCall(i int, result1 []byte, result2 error)

func (*CasClient) Write added in v0.1.5

func (fake *CasClient) Write(content []byte) (string, error)

func (*CasClient) WriteArgsForCall added in v0.1.5

func (fake *CasClient) WriteArgsForCall(i int) []byte

func (*CasClient) WriteCallCount added in v0.1.5

func (fake *CasClient) WriteCallCount() int

func (*CasClient) WriteReturns added in v0.1.5

func (fake *CasClient) WriteReturns(result1 string, result2 error)

func (*CasClient) WriteReturnsOnCall added in v0.1.5

func (fake *CasClient) WriteReturnsOnCall(i int, result1 string, result2 error)

type DCASClient

type DCASClient struct {
	PutStub func(data io.Reader, opts ...client.Option) (string, error)

	DeleteStub func(cids ...string) error

	GetStub func(cid string, w io.Writer) error

	GetNodeStub func(cid string) (*client.Node, error)
	// contains filtered or unexported fields
}

func (*DCASClient) Delete

func (fake *DCASClient) Delete(cids ...string) error

func (*DCASClient) DeleteArgsForCall

func (fake *DCASClient) DeleteArgsForCall(i int) []string

func (*DCASClient) DeleteCallCount

func (fake *DCASClient) DeleteCallCount() int

func (*DCASClient) DeleteReturns

func (fake *DCASClient) DeleteReturns(result1 error)

func (*DCASClient) DeleteReturnsOnCall

func (fake *DCASClient) DeleteReturnsOnCall(i int, result1 error)

func (*DCASClient) Get

func (fake *DCASClient) Get(cid string, w io.Writer) error

func (*DCASClient) GetArgsForCall

func (fake *DCASClient) GetArgsForCall(i int) (string, io.Writer)

func (*DCASClient) GetCallCount

func (fake *DCASClient) GetCallCount() int

func (*DCASClient) GetNode added in v0.1.5

func (fake *DCASClient) GetNode(cid string) (*client.Node, error)

func (*DCASClient) GetNodeArgsForCall added in v0.1.5

func (fake *DCASClient) GetNodeArgsForCall(i int) string

func (*DCASClient) GetNodeCallCount added in v0.1.5

func (fake *DCASClient) GetNodeCallCount() int

func (*DCASClient) GetNodeReturns added in v0.1.5

func (fake *DCASClient) GetNodeReturns(result1 *client.Node, result2 error)

func (*DCASClient) GetNodeReturnsOnCall added in v0.1.5

func (fake *DCASClient) GetNodeReturnsOnCall(i int, result1 *client.Node, result2 error)

func (*DCASClient) GetReturns

func (fake *DCASClient) GetReturns(result1 error)

func (*DCASClient) GetReturnsOnCall

func (fake *DCASClient) GetReturnsOnCall(i int, result1 error)

func (*DCASClient) Invocations

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

func (*DCASClient) Put

func (fake *DCASClient) Put(data io.Reader, opts ...client.Option) (string, error)

func (*DCASClient) PutArgsForCall

func (fake *DCASClient) PutArgsForCall(i int) (io.Reader, []client.Option)

func (*DCASClient) PutCallCount

func (fake *DCASClient) PutCallCount() int

func (*DCASClient) PutReturns

func (fake *DCASClient) PutReturns(result1 string, result2 error)

func (*DCASClient) PutReturnsOnCall

func (fake *DCASClient) PutReturnsOnCall(i int, result1 string, result2 error)

type DCASClientProvider

type DCASClientProvider struct {
	GetDCASClientStub func(channelID string, namespace string, coll string) (dcasclient.DCAS, error)
	// contains filtered or unexported fields
}

func (*DCASClientProvider) GetDCASClient added in v0.1.5

func (fake *DCASClientProvider) GetDCASClient(channelID string, namespace string, coll string) (dcasclient.DCAS, error)

func (*DCASClientProvider) GetDCASClientArgsForCall added in v0.1.5

func (fake *DCASClientProvider) GetDCASClientArgsForCall(i int) (string, string, string)

func (*DCASClientProvider) GetDCASClientCallCount added in v0.1.5

func (fake *DCASClientProvider) GetDCASClientCallCount() int

func (*DCASClientProvider) GetDCASClientReturns added in v0.1.5

func (fake *DCASClientProvider) GetDCASClientReturns(result1 dcasclient.DCAS, result2 error)

func (*DCASClientProvider) GetDCASClientReturnsOnCall added in v0.1.5

func (fake *DCASClientProvider) GetDCASClientReturnsOnCall(i int, result1 dcasclient.DCAS, result2 error)

func (*DCASClientProvider) Invocations

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

type DocumentResolver added in v0.1.3

type DocumentResolver struct {
	ResolveDocumentStub func(string) (*document.ResolutionResult, error)
	// contains filtered or unexported fields
}

func (*DocumentResolver) Invocations added in v0.1.3

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

func (*DocumentResolver) ResolveDocument added in v0.1.3

func (fake *DocumentResolver) ResolveDocument(arg1 string) (*document.ResolutionResult, error)

func (*DocumentResolver) ResolveDocumentArgsForCall added in v0.1.3

func (fake *DocumentResolver) ResolveDocumentArgsForCall(i int) string

func (*DocumentResolver) ResolveDocumentCallCount added in v0.1.3

func (fake *DocumentResolver) ResolveDocumentCallCount() int

func (*DocumentResolver) ResolveDocumentCalls added in v0.1.3

func (fake *DocumentResolver) ResolveDocumentCalls(stub func(string) (*document.ResolutionResult, error))

func (*DocumentResolver) ResolveDocumentReturns added in v0.1.3

func (fake *DocumentResolver) ResolveDocumentReturns(result1 *document.ResolutionResult, result2 error)

func (*DocumentResolver) ResolveDocumentReturnsOnCall added in v0.1.3

func (fake *DocumentResolver) ResolveDocumentReturnsOnCall(i int, result1 *document.ResolutionResult, result2 error)

type MockDCASClient added in v0.1.5

type MockDCASClient struct {
	// contains filtered or unexported fields
}

MockDCASClient implements a mock DCAS client

func NewDCASClient added in v0.1.5

func NewDCASClient() *MockDCASClient

NewDCASClient creates a mock DCAS client

func (*MockDCASClient) Delete added in v0.1.5

func (m *MockDCASClient) Delete(...string) error

Delete deletes the values for the given content IDs.

func (*MockDCASClient) Get added in v0.1.5

func (m *MockDCASClient) Get(cid string, w io.Writer) error

Get retrieves the value for the given content ID.

func (*MockDCASClient) GetNode added in v0.1.5

func (m *MockDCASClient) GetNode(cid string) (*dcasclient.Node, error)

GetNode retrieves the CAS Node for the given content ID. A node contains data and/or links to other nodes.

func (*MockDCASClient) Put added in v0.1.5

func (m *MockDCASClient) Put(data io.Reader, opts ...dcasclient.Option) (string, error)

Put puts the data and returns the content ID for the value

func (*MockDCASClient) WithData added in v0.1.5

func (m *MockDCASClient) WithData(key string, value []byte) *MockDCASClient

WithData sets the key-value

func (*MockDCASClient) WithGetError added in v0.1.5

func (m *MockDCASClient) WithGetError(err error) *MockDCASClient

WithGetError sets an error for Get operations

func (*MockDCASClient) WithGetNodeError added in v0.1.5

func (m *MockDCASClient) WithGetNodeError(err error) *MockDCASClient

WithGetNodeError sets an error for GetNode operations

func (*MockDCASClient) WithNode added in v0.1.5

func (m *MockDCASClient) WithNode(key string, node *dcasclient.Node) *MockDCASClient

WithNode sets the key-node

func (*MockDCASClient) WithPanic added in v0.1.5

func (m *MockDCASClient) WithPanic(msg string) *MockDCASClient

WithPanic if set to true indicates that invoking any operation should cause a panic

func (*MockDCASClient) WithPutError added in v0.1.5

func (m *MockDCASClient) WithPutError(err error) *MockDCASClient

WithPutError sets an error for Put operations

type OperationHandler added in v0.1.5

type OperationHandler struct {
	PrepareTxnFilesStub func([]*operation.QueuedOperation) (string, []*operation.Reference, error)
	// contains filtered or unexported fields
}

func (*OperationHandler) Invocations added in v0.1.5

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

func (*OperationHandler) PrepareTxnFiles added in v0.1.5

func (fake *OperationHandler) PrepareTxnFiles(arg1 []*operation.QueuedOperation) (string, []*operation.Reference, error)

func (*OperationHandler) PrepareTxnFilesArgsForCall added in v0.1.5

func (fake *OperationHandler) PrepareTxnFilesArgsForCall(i int) []*operation.QueuedOperation

func (*OperationHandler) PrepareTxnFilesCallCount added in v0.1.5

func (fake *OperationHandler) PrepareTxnFilesCallCount() int

func (*OperationHandler) PrepareTxnFilesCalls added in v0.1.5

func (fake *OperationHandler) PrepareTxnFilesCalls(stub func([]*operation.QueuedOperation) (string, []*operation.Reference, error))

func (*OperationHandler) PrepareTxnFilesReturns added in v0.1.5

func (fake *OperationHandler) PrepareTxnFilesReturns(result1 string, result2 []*operation.Reference, result3 error)

func (*OperationHandler) PrepareTxnFilesReturnsOnCall added in v0.1.5

func (fake *OperationHandler) PrepareTxnFilesReturnsOnCall(i int, result1 string, result2 []*operation.Reference, result3 error)

type OperationProvider added in v0.1.5

type OperationProvider struct {
	GetTxnOperationsStub func(*txn.SidetreeTxn) ([]*operation.AnchoredOperation, error)
	// contains filtered or unexported fields
}

func (*OperationProvider) GetTxnOperations added in v0.1.5

func (fake *OperationProvider) GetTxnOperations(arg1 *txn.SidetreeTxn) ([]*operation.AnchoredOperation, error)

func (*OperationProvider) GetTxnOperationsArgsForCall added in v0.1.5

func (fake *OperationProvider) GetTxnOperationsArgsForCall(i int) *txn.SidetreeTxn

func (*OperationProvider) GetTxnOperationsCallCount added in v0.1.5

func (fake *OperationProvider) GetTxnOperationsCallCount() int

func (*OperationProvider) GetTxnOperationsCalls added in v0.1.5

func (fake *OperationProvider) GetTxnOperationsCalls(stub func(*txn.SidetreeTxn) ([]*operation.AnchoredOperation, error))

func (*OperationProvider) GetTxnOperationsReturns added in v0.1.5

func (fake *OperationProvider) GetTxnOperationsReturns(result1 []*operation.AnchoredOperation, result2 error)

func (*OperationProvider) GetTxnOperationsReturnsOnCall added in v0.1.5

func (fake *OperationProvider) GetTxnOperationsReturnsOnCall(i int, result1 []*operation.AnchoredOperation, result2 error)

func (*OperationProvider) Invocations added in v0.1.5

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

type OperationQueueProvider added in v0.1.3

type OperationQueueProvider struct {
	CreateStub func(channelID string, namespace string) (cutter.OperationQueue, error)
	// contains filtered or unexported fields
}

func (*OperationQueueProvider) Create added in v0.1.3

func (fake *OperationQueueProvider) Create(channelID string, namespace string) (cutter.OperationQueue, error)

func (*OperationQueueProvider) CreateArgsForCall added in v0.1.3

func (fake *OperationQueueProvider) CreateArgsForCall(i int) (string, string)

func (*OperationQueueProvider) CreateCallCount added in v0.1.3

func (fake *OperationQueueProvider) CreateCallCount() int

func (*OperationQueueProvider) CreateReturns added in v0.1.3

func (fake *OperationQueueProvider) CreateReturns(result1 cutter.OperationQueue, result2 error)

func (*OperationQueueProvider) CreateReturnsOnCall added in v0.1.3

func (fake *OperationQueueProvider) CreateReturnsOnCall(i int, result1 cutter.OperationQueue, result2 error)

func (*OperationQueueProvider) Invocations added in v0.1.3

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

type OperationStore added in v0.1.3

type OperationStore struct {
	GetStub func(suffix string) ([]*operation.AnchoredOperation, error)

	PutStub func(ops []*operation.AnchoredOperation) error
	// contains filtered or unexported fields
}

func (*OperationStore) Get added in v0.1.3

func (fake *OperationStore) Get(suffix string) ([]*operation.AnchoredOperation, error)

func (*OperationStore) GetArgsForCall added in v0.1.3

func (fake *OperationStore) GetArgsForCall(i int) string

func (*OperationStore) GetCallCount added in v0.1.3

func (fake *OperationStore) GetCallCount() int

func (*OperationStore) GetReturns added in v0.1.3

func (fake *OperationStore) GetReturns(result1 []*operation.AnchoredOperation, result2 error)

func (*OperationStore) GetReturnsOnCall added in v0.1.3

func (fake *OperationStore) GetReturnsOnCall(i int, result1 []*operation.AnchoredOperation, result2 error)

func (*OperationStore) Invocations added in v0.1.3

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

func (*OperationStore) Put added in v0.1.3

func (fake *OperationStore) Put(ops []*operation.AnchoredOperation) error

func (*OperationStore) PutArgsForCall added in v0.1.3

func (fake *OperationStore) PutArgsForCall(i int) []*operation.AnchoredOperation

func (*OperationStore) PutCallCount added in v0.1.3

func (fake *OperationStore) PutCallCount() int

func (*OperationStore) PutReturns added in v0.1.3

func (fake *OperationStore) PutReturns(result1 error)

func (*OperationStore) PutReturnsOnCall added in v0.1.3

func (fake *OperationStore) PutReturnsOnCall(i int, result1 error)

type OperationStoreProvider added in v0.1.3

type OperationStoreProvider struct {
	ForNamespaceStub func(namespace string) (common.OperationStore, error)
	// contains filtered or unexported fields
}

func (*OperationStoreProvider) ForNamespace added in v0.1.3

func (fake *OperationStoreProvider) ForNamespace(namespace string) (common.OperationStore, error)

func (*OperationStoreProvider) ForNamespaceArgsForCall added in v0.1.3

func (fake *OperationStoreProvider) ForNamespaceArgsForCall(i int) string

func (*OperationStoreProvider) ForNamespaceCallCount added in v0.1.3

func (fake *OperationStoreProvider) ForNamespaceCallCount() int

func (*OperationStoreProvider) ForNamespaceReturns added in v0.1.3

func (fake *OperationStoreProvider) ForNamespaceReturns(result1 common.OperationStore, result2 error)

func (*OperationStoreProvider) ForNamespaceReturnsOnCall added in v0.1.3

func (fake *OperationStoreProvider) ForNamespaceReturnsOnCall(i int, result1 common.OperationStore, result2 error)

func (*OperationStoreProvider) Invocations added in v0.1.3

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

type ProtocolClient added in v0.1.5

type ProtocolClient struct {
	CurrentStub func() (protocol.Version, error)

	GetStub func(transactionTime uint64) (protocol.Version, error)
	// contains filtered or unexported fields
}

func (*ProtocolClient) Current added in v0.1.5

func (fake *ProtocolClient) Current() (protocol.Version, error)

func (*ProtocolClient) CurrentCallCount added in v0.1.5

func (fake *ProtocolClient) CurrentCallCount() int

func (*ProtocolClient) CurrentReturns added in v0.1.5

func (fake *ProtocolClient) CurrentReturns(result1 protocol.Version, result2 error)

func (*ProtocolClient) CurrentReturnsOnCall added in v0.1.5

func (fake *ProtocolClient) CurrentReturnsOnCall(i int, result1 protocol.Version, result2 error)

func (*ProtocolClient) Get added in v0.1.5

func (fake *ProtocolClient) Get(transactionTime uint64) (protocol.Version, error)

func (*ProtocolClient) GetArgsForCall added in v0.1.5

func (fake *ProtocolClient) GetArgsForCall(i int) uint64

func (*ProtocolClient) GetCallCount added in v0.1.5

func (fake *ProtocolClient) GetCallCount() int

func (*ProtocolClient) GetReturns added in v0.1.5

func (fake *ProtocolClient) GetReturns(result1 protocol.Version, result2 error)

func (*ProtocolClient) GetReturnsOnCall added in v0.1.5

func (fake *ProtocolClient) GetReturnsOnCall(i int, result1 protocol.Version, result2 error)

func (*ProtocolClient) Invocations added in v0.1.5

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

type ProtocolClientProvider added in v0.1.5

type ProtocolClientProvider struct {
	ForNamespaceStub func(namespace string) (protocol.Client, error)
	// contains filtered or unexported fields
}

func (*ProtocolClientProvider) ForNamespace added in v0.1.5

func (fake *ProtocolClientProvider) ForNamespace(namespace string) (protocol.Client, error)

func (*ProtocolClientProvider) ForNamespaceArgsForCall added in v0.1.5

func (fake *ProtocolClientProvider) ForNamespaceArgsForCall(i int) string

func (*ProtocolClientProvider) ForNamespaceCallCount added in v0.1.5

func (fake *ProtocolClientProvider) ForNamespaceCallCount() int

func (*ProtocolClientProvider) ForNamespaceReturns added in v0.1.5

func (fake *ProtocolClientProvider) ForNamespaceReturns(result1 protocol.Client, result2 error)

func (*ProtocolClientProvider) ForNamespaceReturnsOnCall added in v0.1.5

func (fake *ProtocolClientProvider) ForNamespaceReturnsOnCall(i int, result1 protocol.Client, result2 error)

func (*ProtocolClientProvider) Invocations added in v0.1.5

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

type TxnService

type TxnService struct {
	EndorseStub func(req *api.Request) (resp *channel.Response, err error)

	EndorseAndCommitStub func(req *api.Request) (resp *channel.Response, committed bool, err error)

	CommitEndorsementsStub func(req *api.CommitRequest) (*channel.Response, bool, error)

	SigningIdentityStub func() ([]byte, error)

	GetPeerStub func(endpoint string) (fab.Peer, error)

	VerifyProposalSignatureStub func(signedProposal *pb.SignedProposal) error

	ValidateProposalResponsesStub func(signedProposal *pb.SignedProposal, proposalResponses []*pb.ProposalResponse) (pb.TxValidationCode, error)
	// contains filtered or unexported fields
}

func (*TxnService) CommitEndorsements added in v0.1.4

func (fake *TxnService) CommitEndorsements(req *api.CommitRequest) (*channel.Response, bool, error)

func (*TxnService) CommitEndorsementsArgsForCall added in v0.1.4

func (fake *TxnService) CommitEndorsementsArgsForCall(i int) *api.CommitRequest

func (*TxnService) CommitEndorsementsCallCount added in v0.1.4

func (fake *TxnService) CommitEndorsementsCallCount() int

func (*TxnService) CommitEndorsementsReturns added in v0.1.4

func (fake *TxnService) CommitEndorsementsReturns(result1 *channel.Response, result2 bool, result3 error)

func (*TxnService) CommitEndorsementsReturnsOnCall added in v0.1.4

func (fake *TxnService) CommitEndorsementsReturnsOnCall(i int, result1 *channel.Response, result2 bool, result3 error)

func (*TxnService) Endorse

func (fake *TxnService) Endorse(req *api.Request) (resp *channel.Response, err error)

func (*TxnService) EndorseAndCommit

func (fake *TxnService) EndorseAndCommit(req *api.Request) (resp *channel.Response, committed bool, err error)

func (*TxnService) EndorseAndCommitArgsForCall

func (fake *TxnService) EndorseAndCommitArgsForCall(i int) *api.Request

func (*TxnService) EndorseAndCommitCallCount

func (fake *TxnService) EndorseAndCommitCallCount() int

func (*TxnService) EndorseAndCommitReturns

func (fake *TxnService) EndorseAndCommitReturns(result1 *channel.Response, result2 bool, result3 error)

func (*TxnService) EndorseAndCommitReturnsOnCall

func (fake *TxnService) EndorseAndCommitReturnsOnCall(i int, result1 *channel.Response, result2 bool, result3 error)

func (*TxnService) EndorseArgsForCall

func (fake *TxnService) EndorseArgsForCall(i int) *api.Request

func (*TxnService) EndorseCallCount

func (fake *TxnService) EndorseCallCount() int

func (*TxnService) EndorseReturns

func (fake *TxnService) EndorseReturns(result1 *channel.Response, result2 error)

func (*TxnService) EndorseReturnsOnCall

func (fake *TxnService) EndorseReturnsOnCall(i int, result1 *channel.Response, result2 error)

func (*TxnService) GetPeer added in v0.1.4

func (fake *TxnService) GetPeer(endpoint string) (fab.Peer, error)

func (*TxnService) GetPeerArgsForCall added in v0.1.4

func (fake *TxnService) GetPeerArgsForCall(i int) string

func (*TxnService) GetPeerCallCount added in v0.1.4

func (fake *TxnService) GetPeerCallCount() int

func (*TxnService) GetPeerReturns added in v0.1.4

func (fake *TxnService) GetPeerReturns(result1 fab.Peer, result2 error)

func (*TxnService) GetPeerReturnsOnCall added in v0.1.4

func (fake *TxnService) GetPeerReturnsOnCall(i int, result1 fab.Peer, result2 error)

func (*TxnService) Invocations

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

func (*TxnService) SigningIdentity added in v0.1.4

func (fake *TxnService) SigningIdentity() ([]byte, error)

func (*TxnService) SigningIdentityCallCount added in v0.1.4

func (fake *TxnService) SigningIdentityCallCount() int

func (*TxnService) SigningIdentityReturns added in v0.1.4

func (fake *TxnService) SigningIdentityReturns(result1 []byte, result2 error)

func (*TxnService) SigningIdentityReturnsOnCall added in v0.1.4

func (fake *TxnService) SigningIdentityReturnsOnCall(i int, result1 []byte, result2 error)

func (*TxnService) ValidateProposalResponses added in v0.1.4

func (fake *TxnService) ValidateProposalResponses(signedProposal *pb.SignedProposal, proposalResponses []*pb.ProposalResponse) (pb.TxValidationCode, error)

func (*TxnService) ValidateProposalResponsesArgsForCall added in v0.1.4

func (fake *TxnService) ValidateProposalResponsesArgsForCall(i int) (*pb.SignedProposal, []*pb.ProposalResponse)

func (*TxnService) ValidateProposalResponsesCallCount added in v0.1.4

func (fake *TxnService) ValidateProposalResponsesCallCount() int

func (*TxnService) ValidateProposalResponsesReturns added in v0.1.4

func (fake *TxnService) ValidateProposalResponsesReturns(result1 pb.TxValidationCode, result2 error)

func (*TxnService) ValidateProposalResponsesReturnsOnCall added in v0.1.4

func (fake *TxnService) ValidateProposalResponsesReturnsOnCall(i int, result1 pb.TxValidationCode, result2 error)

func (*TxnService) VerifyProposalSignature added in v0.1.4

func (fake *TxnService) VerifyProposalSignature(signedProposal *pb.SignedProposal) error

func (*TxnService) VerifyProposalSignatureArgsForCall added in v0.1.4

func (fake *TxnService) VerifyProposalSignatureArgsForCall(i int) *pb.SignedProposal

func (*TxnService) VerifyProposalSignatureCallCount added in v0.1.4

func (fake *TxnService) VerifyProposalSignatureCallCount() int

func (*TxnService) VerifyProposalSignatureReturns added in v0.1.4

func (fake *TxnService) VerifyProposalSignatureReturns(result1 error)

func (*TxnService) VerifyProposalSignatureReturnsOnCall added in v0.1.4

func (fake *TxnService) VerifyProposalSignatureReturnsOnCall(i int, result1 error)

type TxnServiceProvider

type TxnServiceProvider struct {
	ForChannelStub func(channelID string) (txnapi.Service, error)
	// contains filtered or unexported fields
}

func (*TxnServiceProvider) ForChannel

func (fake *TxnServiceProvider) ForChannel(channelID string) (txnapi.Service, error)

func (*TxnServiceProvider) ForChannelArgsForCall

func (fake *TxnServiceProvider) ForChannelArgsForCall(i int) string

func (*TxnServiceProvider) ForChannelCallCount

func (fake *TxnServiceProvider) ForChannelCallCount() int

func (*TxnServiceProvider) ForChannelReturns

func (fake *TxnServiceProvider) ForChannelReturns(result1 txnapi.Service, result2 error)

func (*TxnServiceProvider) ForChannelReturnsOnCall

func (fake *TxnServiceProvider) ForChannelReturnsOnCall(i int, result1 txnapi.Service, result2 error)

func (*TxnServiceProvider) Invocations

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

Jump to

Keyboard shortcuts

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