mock

package
v0.0.0-...-f6c84cd Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 10 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 FabricTxSubmitter

type FabricTxSubmitter struct {
	SubmitStub func([]byte) error
	// contains filtered or unexported fields
}

func (*FabricTxSubmitter) Invocations

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

func (*FabricTxSubmitter) Submit

func (fake *FabricTxSubmitter) Submit(arg1 []byte) error

func (*FabricTxSubmitter) SubmitArgsForCall

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

func (*FabricTxSubmitter) SubmitCallCount

func (fake *FabricTxSubmitter) SubmitCallCount() int

func (*FabricTxSubmitter) SubmitCalls

func (fake *FabricTxSubmitter) SubmitCalls(stub func([]byte) error)

func (*FabricTxSubmitter) SubmitReturns

func (fake *FabricTxSubmitter) SubmitReturns(result1 error)

func (*FabricTxSubmitter) SubmitReturnsOnCall

func (fake *FabricTxSubmitter) SubmitReturnsOnCall(i int, result1 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 {
	RequestImportStub func([]*token.TokenToIssue, tokena.SigningIdentity) ([]byte, error)

	RequestTransferStub func([][]byte, []*token.RecipientTransferShare, tokena.SigningIdentity) ([]byte, error)
	// contains filtered or unexported fields
}

func (*Prover) Invocations

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

func (*Prover) RequestImport

func (fake *Prover) RequestImport(arg1 []*token.TokenToIssue, arg2 tokena.SigningIdentity) ([]byte, error)

func (*Prover) RequestImportArgsForCall

func (fake *Prover) RequestImportArgsForCall(i int) ([]*token.TokenToIssue, tokena.SigningIdentity)

func (*Prover) RequestImportCallCount

func (fake *Prover) RequestImportCallCount() int

func (*Prover) RequestImportCalls

func (fake *Prover) RequestImportCalls(stub func([]*token.TokenToIssue, tokena.SigningIdentity) ([]byte, error))

func (*Prover) RequestImportReturns

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

func (*Prover) RequestImportReturnsOnCall

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

func (*Prover) RequestTransfer

func (fake *Prover) RequestTransfer(arg1 [][]byte, arg2 []*token.RecipientTransferShare, arg3 tokena.SigningIdentity) ([]byte, error)

func (*Prover) RequestTransferArgsForCall

func (fake *Prover) RequestTransferArgsForCall(i int) ([][]byte, []*token.RecipientTransferShare, tokena.SigningIdentity)

func (*Prover) RequestTransferCallCount

func (fake *Prover) RequestTransferCallCount() int

func (*Prover) RequestTransferCalls

func (fake *Prover) RequestTransferCalls(stub func([][]byte, []*token.RecipientTransferShare, tokena.SigningIdentity) ([]byte, error))

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 SignerIdentity

type SignerIdentity struct {
	SignStub func([]byte) ([]byte, error)

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

func (*SignerIdentity) Invocations

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

func (*SignerIdentity) Serialize

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

func (*SignerIdentity) SerializeCallCount

func (fake *SignerIdentity) SerializeCallCount() int

func (*SignerIdentity) SerializeReturns

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

func (*SignerIdentity) SerializeReturnsOnCall

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

func (*SignerIdentity) Sign

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

func (*SignerIdentity) SignArgsForCall

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

func (*SignerIdentity) SignCallCount

func (fake *SignerIdentity) SignCallCount() int

func (*SignerIdentity) SignReturns

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

func (*SignerIdentity) SignReturnsOnCall

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

type SigningIdentity

type SigningIdentity struct {
	GetPublicVersionStub func() token.Identity

	SerializeStub func() ([]byte, error)

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

func (*SigningIdentity) GetPublicVersion

func (fake *SigningIdentity) GetPublicVersion() token.Identity

func (*SigningIdentity) GetPublicVersionCallCount

func (fake *SigningIdentity) GetPublicVersionCallCount() int

func (*SigningIdentity) GetPublicVersionCalls

func (fake *SigningIdentity) GetPublicVersionCalls(stub func() token.Identity)

func (*SigningIdentity) GetPublicVersionReturns

func (fake *SigningIdentity) GetPublicVersionReturns(result1 token.Identity)

func (*SigningIdentity) GetPublicVersionReturnsOnCall

func (fake *SigningIdentity) GetPublicVersionReturnsOnCall(i int, result1 token.Identity)

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