mock

package
v2.0.0-alpha+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: Apache-2.0 Imports: 11 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AtomicBroadcastServer

type AtomicBroadcastServer struct {
	BroadcastStub func(orderer.AtomicBroadcast_BroadcastServer) error

	DeliverStub func(orderer.AtomicBroadcast_DeliverServer) error
	// contains filtered or unexported fields
}

func (*AtomicBroadcastServer) Broadcast

func (*AtomicBroadcastServer) BroadcastArgsForCall

func (fake *AtomicBroadcastServer) BroadcastArgsForCall(i int) orderer.AtomicBroadcast_BroadcastServer

func (*AtomicBroadcastServer) BroadcastCallCount

func (fake *AtomicBroadcastServer) BroadcastCallCount() int

func (*AtomicBroadcastServer) BroadcastCalls

func (fake *AtomicBroadcastServer) BroadcastCalls(stub func(orderer.AtomicBroadcast_BroadcastServer) error)

func (*AtomicBroadcastServer) BroadcastReturns

func (fake *AtomicBroadcastServer) BroadcastReturns(result1 error)

func (*AtomicBroadcastServer) BroadcastReturnsOnCall

func (fake *AtomicBroadcastServer) BroadcastReturnsOnCall(i int, result1 error)

func (*AtomicBroadcastServer) Deliver

func (*AtomicBroadcastServer) DeliverArgsForCall

func (fake *AtomicBroadcastServer) DeliverArgsForCall(i int) orderer.AtomicBroadcast_DeliverServer

func (*AtomicBroadcastServer) DeliverCallCount

func (fake *AtomicBroadcastServer) DeliverCallCount() int

func (*AtomicBroadcastServer) DeliverCalls

func (fake *AtomicBroadcastServer) DeliverCalls(stub func(orderer.AtomicBroadcast_DeliverServer) error)

func (*AtomicBroadcastServer) DeliverReturns

func (fake *AtomicBroadcastServer) DeliverReturns(result1 error)

func (*AtomicBroadcastServer) DeliverReturnsOnCall

func (fake *AtomicBroadcastServer) DeliverReturnsOnCall(i int, result1 error)

func (*AtomicBroadcastServer) Invocations

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

type Broadcast

type Broadcast struct {
	SendStub func(m *common.Envelope) error

	RecvStub func() (*ab.BroadcastResponse, error)

	CloseSendStub func() error
	// contains filtered or unexported fields
}

func (*Broadcast) CloseSend

func (fake *Broadcast) CloseSend() error

func (*Broadcast) CloseSendCallCount

func (fake *Broadcast) CloseSendCallCount() int

func (*Broadcast) CloseSendReturns

func (fake *Broadcast) CloseSendReturns(result1 error)

func (*Broadcast) CloseSendReturnsOnCall

func (fake *Broadcast) CloseSendReturnsOnCall(i int, result1 error)

func (*Broadcast) Invocations

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

func (*Broadcast) Recv

func (fake *Broadcast) Recv() (*ab.BroadcastResponse, error)

func (*Broadcast) RecvCallCount

func (fake *Broadcast) RecvCallCount() int

func (*Broadcast) RecvReturns

func (fake *Broadcast) RecvReturns(result1 *ab.BroadcastResponse, result2 error)

func (*Broadcast) RecvReturnsOnCall

func (fake *Broadcast) RecvReturnsOnCall(i int, result1 *ab.BroadcastResponse, result2 error)

func (*Broadcast) Send

func (fake *Broadcast) Send(m *common.Envelope) error

func (*Broadcast) SendArgsForCall

func (fake *Broadcast) SendArgsForCall(i int) *common.Envelope

func (*Broadcast) SendCallCount

func (fake *Broadcast) SendCallCount() int

func (*Broadcast) SendReturns

func (fake *Broadcast) SendReturns(result1 error)

func (*Broadcast) SendReturnsOnCall

func (fake *Broadcast) SendReturnsOnCall(i int, result1 error)

type DeliverClient

type DeliverClient struct {
	NewDeliverFilteredStub func(ctx context.Context, opts ...grpc.CallOption) (client.DeliverFiltered, error)

	CertificateStub func() *tls.Certificate
	// contains filtered or unexported fields
}

func (*DeliverClient) Certificate

func (fake *DeliverClient) Certificate() *tls.Certificate

func (*DeliverClient) CertificateCallCount

func (fake *DeliverClient) CertificateCallCount() int

func (*DeliverClient) CertificateReturns

func (fake *DeliverClient) CertificateReturns(result1 *tls.Certificate)

func (*DeliverClient) CertificateReturnsOnCall

func (fake *DeliverClient) CertificateReturnsOnCall(i int, result1 *tls.Certificate)

func (*DeliverClient) Invocations

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

func (*DeliverClient) NewDeliverFiltered

func (fake *DeliverClient) NewDeliverFiltered(ctx context.Context, opts ...grpc.CallOption) (client.DeliverFiltered, error)

func (*DeliverClient) NewDeliverFilteredArgsForCall

func (fake *DeliverClient) NewDeliverFilteredArgsForCall(i int) (context.Context, []grpc.CallOption)

func (*DeliverClient) NewDeliverFilteredCallCount

func (fake *DeliverClient) NewDeliverFilteredCallCount() int

func (*DeliverClient) NewDeliverFilteredReturns

func (fake *DeliverClient) NewDeliverFilteredReturns(result1 client.DeliverFiltered, result2 error)

func (*DeliverClient) NewDeliverFilteredReturnsOnCall

func (fake *DeliverClient) NewDeliverFilteredReturnsOnCall(i int, result1 client.DeliverFiltered, result2 error)

type DeliverFiltered

type DeliverFiltered struct {
	SendStub func(*common.Envelope) error

	RecvStub func() (*pb.DeliverResponse, error)

	CloseSendStub func() error
	// contains filtered or unexported fields
}

func (*DeliverFiltered) CloseSend

func (fake *DeliverFiltered) CloseSend() error

func (*DeliverFiltered) CloseSendCallCount

func (fake *DeliverFiltered) CloseSendCallCount() int

func (*DeliverFiltered) CloseSendReturns

func (fake *DeliverFiltered) CloseSendReturns(result1 error)

func (*DeliverFiltered) CloseSendReturnsOnCall

func (fake *DeliverFiltered) CloseSendReturnsOnCall(i int, result1 error)

func (*DeliverFiltered) Invocations

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

func (*DeliverFiltered) Recv

func (fake *DeliverFiltered) Recv() (*pb.DeliverResponse, error)

func (*DeliverFiltered) RecvCallCount

func (fake *DeliverFiltered) RecvCallCount() int

func (*DeliverFiltered) RecvReturns

func (fake *DeliverFiltered) RecvReturns(result1 *pb.DeliverResponse, result2 error)

func (*DeliverFiltered) RecvReturnsOnCall

func (fake *DeliverFiltered) RecvReturnsOnCall(i int, result1 *pb.DeliverResponse, result2 error)

func (*DeliverFiltered) Send

func (fake *DeliverFiltered) Send(arg1 *common.Envelope) error

func (*DeliverFiltered) SendArgsForCall

func (fake *DeliverFiltered) SendArgsForCall(i int) *common.Envelope

func (*DeliverFiltered) SendCallCount

func (fake *DeliverFiltered) SendCallCount() int

func (*DeliverFiltered) SendReturns

func (fake *DeliverFiltered) SendReturns(result1 error)

func (*DeliverFiltered) SendReturnsOnCall

func (fake *DeliverFiltered) SendReturnsOnCall(i int, result1 error)

type DeliverServer

type DeliverServer struct {
	DeliverStub func(peer.Deliver_DeliverServer) error

	DeliverFilteredStub func(peer.Deliver_DeliverFilteredServer) error
	// contains filtered or unexported fields
}

func (*DeliverServer) Deliver

func (fake *DeliverServer) Deliver(arg1 peer.Deliver_DeliverServer) error

func (*DeliverServer) DeliverArgsForCall

func (fake *DeliverServer) DeliverArgsForCall(i int) peer.Deliver_DeliverServer

func (*DeliverServer) DeliverCallCount

func (fake *DeliverServer) DeliverCallCount() int

func (*DeliverServer) DeliverCalls

func (fake *DeliverServer) DeliverCalls(stub func(peer.Deliver_DeliverServer) error)

func (*DeliverServer) DeliverFiltered

func (fake *DeliverServer) DeliverFiltered(arg1 peer.Deliver_DeliverFilteredServer) error

func (*DeliverServer) DeliverFilteredArgsForCall

func (fake *DeliverServer) DeliverFilteredArgsForCall(i int) peer.Deliver_DeliverFilteredServer

func (*DeliverServer) DeliverFilteredCallCount

func (fake *DeliverServer) DeliverFilteredCallCount() int

func (*DeliverServer) DeliverFilteredCalls

func (fake *DeliverServer) DeliverFilteredCalls(stub func(peer.Deliver_DeliverFilteredServer) error)

func (*DeliverServer) DeliverFilteredReturns

func (fake *DeliverServer) DeliverFilteredReturns(result1 error)

func (*DeliverServer) DeliverFilteredReturnsOnCall

func (fake *DeliverServer) DeliverFilteredReturnsOnCall(i int, result1 error)

func (*DeliverServer) DeliverReturns

func (fake *DeliverServer) DeliverReturns(result1 error)

func (*DeliverServer) DeliverReturnsOnCall

func (fake *DeliverServer) DeliverReturnsOnCall(i int, result1 error)

func (*DeliverServer) Invocations

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

type FabricTxSubmitter

type FabricTxSubmitter struct {
	CreateTxEnvelopeStub func([]byte) (*common.Envelope, string, error)

	SubmitStub func(*common.Envelope, time.Duration) (*common.Status, bool, error)
	// contains filtered or unexported fields
}

func (*FabricTxSubmitter) CreateTxEnvelope

func (fake *FabricTxSubmitter) CreateTxEnvelope(arg1 []byte) (*common.Envelope, string, error)

func (*FabricTxSubmitter) CreateTxEnvelopeArgsForCall

func (fake *FabricTxSubmitter) CreateTxEnvelopeArgsForCall(i int) []byte

func (*FabricTxSubmitter) CreateTxEnvelopeCallCount

func (fake *FabricTxSubmitter) CreateTxEnvelopeCallCount() int

func (*FabricTxSubmitter) CreateTxEnvelopeCalls

func (fake *FabricTxSubmitter) CreateTxEnvelopeCalls(stub func([]byte) (*common.Envelope, string, error))

func (*FabricTxSubmitter) CreateTxEnvelopeReturns

func (fake *FabricTxSubmitter) CreateTxEnvelopeReturns(result1 *common.Envelope, result2 string, result3 error)

func (*FabricTxSubmitter) CreateTxEnvelopeReturnsOnCall

func (fake *FabricTxSubmitter) CreateTxEnvelopeReturnsOnCall(i int, result1 *common.Envelope, result2 string, result3 error)

func (*FabricTxSubmitter) Invocations

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

func (*FabricTxSubmitter) Submit

func (fake *FabricTxSubmitter) Submit(arg1 *common.Envelope, arg2 time.Duration) (*common.Status, bool, error)

func (*FabricTxSubmitter) SubmitArgsForCall

func (fake *FabricTxSubmitter) SubmitArgsForCall(i int) (*common.Envelope, time.Duration)

func (*FabricTxSubmitter) SubmitCallCount

func (fake *FabricTxSubmitter) SubmitCallCount() int

func (*FabricTxSubmitter) SubmitCalls

func (fake *FabricTxSubmitter) SubmitCalls(stub func(*common.Envelope, time.Duration) (*common.Status, bool, error))

func (*FabricTxSubmitter) SubmitReturns

func (fake *FabricTxSubmitter) SubmitReturns(result1 *common.Status, result2 bool, result3 error)

func (*FabricTxSubmitter) SubmitReturnsOnCall

func (fake *FabricTxSubmitter) SubmitReturnsOnCall(i int, result1 *common.Status, result2 bool, result3 error)

type Identity

type Identity struct {
	SerializeStub func() ([]byte, error)
	// contains filtered or unexported fields
}

func (*Identity) Invocations

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

func (*Identity) Serialize

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

func (*Identity) SerializeCallCount

func (fake *Identity) SerializeCallCount() int

func (*Identity) SerializeCalls

func (fake *Identity) SerializeCalls(stub func() ([]byte, error))

func (*Identity) SerializeReturns

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

func (*Identity) SerializeReturnsOnCall

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

type OrdererClient

type OrdererClient struct {
	NewBroadcastStub func(ctx context.Context, opts ...grpc.CallOption) (client.Broadcast, error)

	CertificateStub func() *tls.Certificate
	// contains filtered or unexported fields
}

func (*OrdererClient) Certificate

func (fake *OrdererClient) Certificate() *tls.Certificate

func (*OrdererClient) CertificateCallCount

func (fake *OrdererClient) CertificateCallCount() int

func (*OrdererClient) CertificateReturns

func (fake *OrdererClient) CertificateReturns(result1 *tls.Certificate)

func (*OrdererClient) CertificateReturnsOnCall

func (fake *OrdererClient) CertificateReturnsOnCall(i int, result1 *tls.Certificate)

func (*OrdererClient) Invocations

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

func (*OrdererClient) NewBroadcast

func (fake *OrdererClient) NewBroadcast(ctx context.Context, opts ...grpc.CallOption) (client.Broadcast, error)

func (*OrdererClient) NewBroadcastArgsForCall

func (fake *OrdererClient) NewBroadcastArgsForCall(i int) (context.Context, []grpc.CallOption)

func (*OrdererClient) NewBroadcastCallCount

func (fake *OrdererClient) NewBroadcastCallCount() int

func (*OrdererClient) NewBroadcastReturns

func (fake *OrdererClient) NewBroadcastReturns(result1 client.Broadcast, result2 error)

func (*OrdererClient) NewBroadcastReturnsOnCall

func (fake *OrdererClient) NewBroadcastReturnsOnCall(i int, result1 client.Broadcast, result2 error)

type Prover

type Prover struct {
	RequestIssueStub func(tokensToIssue []*token.Token, signingIdentity tk.SigningIdentity) ([]byte, error)

	RequestTransferStub func(tokenIDs []*token.TokenId, shares []*token.RecipientShare, signingIdentity tk.SigningIdentity) ([]byte, error)

	RequestRedeemStub func(tokenIDs []*token.TokenId, quantity string, signingIdentity tk.SigningIdentity) ([]byte, error)

	ListTokensStub func(signingIdentity tk.SigningIdentity) ([]*token.UnspentToken, error)
	// contains filtered or unexported fields
}

func (*Prover) Invocations

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

func (*Prover) ListTokens

func (fake *Prover) ListTokens(signingIdentity tk.SigningIdentity) ([]*token.UnspentToken, error)

func (*Prover) ListTokensArgsForCall

func (fake *Prover) ListTokensArgsForCall(i int) tk.SigningIdentity

func (*Prover) ListTokensCallCount

func (fake *Prover) ListTokensCallCount() int

func (*Prover) ListTokensReturns

func (fake *Prover) ListTokensReturns(result1 []*token.UnspentToken, result2 error)

func (*Prover) ListTokensReturnsOnCall

func (fake *Prover) ListTokensReturnsOnCall(i int, result1 []*token.UnspentToken, result2 error)

func (*Prover) RequestIssue

func (fake *Prover) RequestIssue(tokensToIssue []*token.Token, signingIdentity tk.SigningIdentity) ([]byte, error)

func (*Prover) RequestIssueArgsForCall

func (fake *Prover) RequestIssueArgsForCall(i int) ([]*token.Token, tk.SigningIdentity)

func (*Prover) RequestIssueCallCount

func (fake *Prover) RequestIssueCallCount() int

func (*Prover) RequestIssueReturns

func (fake *Prover) RequestIssueReturns(result1 []byte, result2 error)

func (*Prover) RequestIssueReturnsOnCall

func (fake *Prover) RequestIssueReturnsOnCall(i int, result1 []byte, result2 error)

func (*Prover) RequestRedeem

func (fake *Prover) RequestRedeem(tokenIDs []*token.TokenId, quantity string, signingIdentity tk.SigningIdentity) ([]byte, error)

func (*Prover) RequestRedeemArgsForCall

func (fake *Prover) RequestRedeemArgsForCall(i int) ([]*token.TokenId, string, tk.SigningIdentity)

func (*Prover) RequestRedeemCallCount

func (fake *Prover) RequestRedeemCallCount() int

func (*Prover) RequestRedeemReturns

func (fake *Prover) RequestRedeemReturns(result1 []byte, result2 error)

func (*Prover) RequestRedeemReturnsOnCall

func (fake *Prover) RequestRedeemReturnsOnCall(i int, result1 []byte, result2 error)

func (*Prover) RequestTransfer

func (fake *Prover) RequestTransfer(tokenIDs []*token.TokenId, shares []*token.RecipientShare, signingIdentity tk.SigningIdentity) ([]byte, error)

func (*Prover) RequestTransferArgsForCall

func (fake *Prover) RequestTransferArgsForCall(i int) ([]*token.TokenId, []*token.RecipientShare, tk.SigningIdentity)

func (*Prover) RequestTransferCallCount

func (fake *Prover) RequestTransferCallCount() int

func (*Prover) RequestTransferReturns

func (fake *Prover) RequestTransferReturns(result1 []byte, result2 error)

func (*Prover) RequestTransferReturnsOnCall

func (fake *Prover) RequestTransferReturnsOnCall(i int, result1 []byte, result2 error)

type ProverClient

type ProverClient struct {
	ProcessCommandStub func(context.Context, *token.SignedCommand, ...grpc.CallOption) (*token.SignedCommandResponse, error)
	// contains filtered or unexported fields
}

func (*ProverClient) Invocations

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

func (*ProverClient) ProcessCommand

func (fake *ProverClient) ProcessCommand(arg1 context.Context, arg2 *token.SignedCommand, arg3 ...grpc.CallOption) (*token.SignedCommandResponse, error)

func (*ProverClient) ProcessCommandArgsForCall

func (fake *ProverClient) ProcessCommandArgsForCall(i int) (context.Context, *token.SignedCommand, []grpc.CallOption)

func (*ProverClient) ProcessCommandCallCount

func (fake *ProverClient) ProcessCommandCallCount() int

func (*ProverClient) ProcessCommandCalls

func (fake *ProverClient) ProcessCommandCalls(stub func(context.Context, *token.SignedCommand, ...grpc.CallOption) (*token.SignedCommandResponse, error))

func (*ProverClient) ProcessCommandReturns

func (fake *ProverClient) ProcessCommandReturns(result1 *token.SignedCommandResponse, result2 error)

func (*ProverClient) ProcessCommandReturnsOnCall

func (fake *ProverClient) ProcessCommandReturnsOnCall(i int, result1 *token.SignedCommandResponse, result2 error)

type ProverPeerClient

type ProverPeerClient struct {
	CertificateStub func() *tls.Certificate

	CreateProverClientStub func() (*grpc.ClientConn, token.ProverClient, error)
	// contains filtered or unexported fields
}

func (*ProverPeerClient) Certificate

func (fake *ProverPeerClient) Certificate() *tls.Certificate

func (*ProverPeerClient) CertificateCallCount

func (fake *ProverPeerClient) CertificateCallCount() int

func (*ProverPeerClient) CertificateCalls

func (fake *ProverPeerClient) CertificateCalls(stub func() *tls.Certificate)

func (*ProverPeerClient) CertificateReturns

func (fake *ProverPeerClient) CertificateReturns(result1 *tls.Certificate)

func (*ProverPeerClient) CertificateReturnsOnCall

func (fake *ProverPeerClient) CertificateReturnsOnCall(i int, result1 *tls.Certificate)

func (*ProverPeerClient) CreateProverClient

func (fake *ProverPeerClient) CreateProverClient() (*grpc.ClientConn, token.ProverClient, error)

func (*ProverPeerClient) CreateProverClientCallCount

func (fake *ProverPeerClient) CreateProverClientCallCount() int

func (*ProverPeerClient) CreateProverClientCalls

func (fake *ProverPeerClient) CreateProverClientCalls(stub func() (*grpc.ClientConn, token.ProverClient, error))

func (*ProverPeerClient) CreateProverClientReturns

func (fake *ProverPeerClient) CreateProverClientReturns(result1 *grpc.ClientConn, result2 token.ProverClient, result3 error)

func (*ProverPeerClient) CreateProverClientReturnsOnCall

func (fake *ProverPeerClient) CreateProverClientReturnsOnCall(i int, result1 *grpc.ClientConn, result2 token.ProverClient, result3 error)

func (*ProverPeerClient) Invocations

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

type SigningIdentity

type SigningIdentity struct {
	SerializeStub func() ([]byte, error)

	SignStub func([]byte) ([]byte, error)
	// contains filtered or unexported fields
}

func (*SigningIdentity) Invocations

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

func (*SigningIdentity) Serialize

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

func (*SigningIdentity) SerializeCallCount

func (fake *SigningIdentity) SerializeCallCount() int

func (*SigningIdentity) SerializeCalls

func (fake *SigningIdentity) SerializeCalls(stub func() ([]byte, error))

func (*SigningIdentity) SerializeReturns

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

func (*SigningIdentity) SerializeReturnsOnCall

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

func (*SigningIdentity) Sign

func (fake *SigningIdentity) Sign(arg1 []byte) ([]byte, error)

func (*SigningIdentity) SignArgsForCall

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

func (*SigningIdentity) SignCallCount

func (fake *SigningIdentity) SignCallCount() int

func (*SigningIdentity) SignCalls

func (fake *SigningIdentity) SignCalls(stub func([]byte) ([]byte, error))

func (*SigningIdentity) SignReturns

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

func (*SigningIdentity) SignReturnsOnCall

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

Jump to

Keyboard shortcuts

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