mock

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: Apache-2.0 Imports: 6 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BroadcastClient

type BroadcastClient struct {
	CloseStub func() error

	SendStub func(*common.Envelope) error
	// contains filtered or unexported fields
}

func (*BroadcastClient) Close

func (fake *BroadcastClient) Close() error

func (*BroadcastClient) CloseCallCount

func (fake *BroadcastClient) CloseCallCount() int

func (*BroadcastClient) CloseCalls

func (fake *BroadcastClient) CloseCalls(stub func() error)

func (*BroadcastClient) CloseReturns

func (fake *BroadcastClient) CloseReturns(result1 error)

func (*BroadcastClient) CloseReturnsOnCall

func (fake *BroadcastClient) CloseReturnsOnCall(i int, result1 error)

func (*BroadcastClient) Invocations

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

func (*BroadcastClient) Send

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

func (*BroadcastClient) SendArgsForCall

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

func (*BroadcastClient) SendCallCount

func (fake *BroadcastClient) SendCallCount() int

func (*BroadcastClient) SendCalls

func (fake *BroadcastClient) SendCalls(stub func(*common.Envelope) error)

func (*BroadcastClient) SendReturns

func (fake *BroadcastClient) SendReturns(result1 error)

func (*BroadcastClient) SendReturnsOnCall

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

type Deliver

type Deliver struct {
	CloseSendStub func() error

	ContextStub func() context.Context

	HeaderStub func() (metadata.MD, error)

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

	RecvMsgStub func(interface{}) error

	SendStub func(*common.Envelope) error

	SendMsgStub func(interface{}) error

	TrailerStub func() metadata.MD
	// contains filtered or unexported fields
}

func (*Deliver) CloseSend

func (fake *Deliver) CloseSend() error

func (*Deliver) CloseSendCallCount

func (fake *Deliver) CloseSendCallCount() int

func (*Deliver) CloseSendCalls

func (fake *Deliver) CloseSendCalls(stub func() error)

func (*Deliver) CloseSendReturns

func (fake *Deliver) CloseSendReturns(result1 error)

func (*Deliver) CloseSendReturnsOnCall

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

func (*Deliver) Context

func (fake *Deliver) Context() context.Context

func (*Deliver) ContextCallCount

func (fake *Deliver) ContextCallCount() int

func (*Deliver) ContextCalls

func (fake *Deliver) ContextCalls(stub func() context.Context)

func (*Deliver) ContextReturns

func (fake *Deliver) ContextReturns(result1 context.Context)

func (*Deliver) ContextReturnsOnCall

func (fake *Deliver) ContextReturnsOnCall(i int, result1 context.Context)

func (*Deliver) Header

func (fake *Deliver) Header() (metadata.MD, error)

func (*Deliver) HeaderCallCount

func (fake *Deliver) HeaderCallCount() int

func (*Deliver) HeaderCalls

func (fake *Deliver) HeaderCalls(stub func() (metadata.MD, error))

func (*Deliver) HeaderReturns

func (fake *Deliver) HeaderReturns(result1 metadata.MD, result2 error)

func (*Deliver) HeaderReturnsOnCall

func (fake *Deliver) HeaderReturnsOnCall(i int, result1 metadata.MD, result2 error)

func (*Deliver) Invocations

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

func (*Deliver) Recv

func (fake *Deliver) Recv() (*peer.DeliverResponse, error)

func (*Deliver) RecvCallCount

func (fake *Deliver) RecvCallCount() int

func (*Deliver) RecvCalls

func (fake *Deliver) RecvCalls(stub func() (*peer.DeliverResponse, error))

func (*Deliver) RecvMsg

func (fake *Deliver) RecvMsg(arg1 interface{}) error

func (*Deliver) RecvMsgArgsForCall

func (fake *Deliver) RecvMsgArgsForCall(i int) interface{}

func (*Deliver) RecvMsgCallCount

func (fake *Deliver) RecvMsgCallCount() int

func (*Deliver) RecvMsgCalls

func (fake *Deliver) RecvMsgCalls(stub func(interface{}) error)

func (*Deliver) RecvMsgReturns

func (fake *Deliver) RecvMsgReturns(result1 error)

func (*Deliver) RecvMsgReturnsOnCall

func (fake *Deliver) RecvMsgReturnsOnCall(i int, result1 error)

func (*Deliver) RecvReturns

func (fake *Deliver) RecvReturns(result1 *peer.DeliverResponse, result2 error)

func (*Deliver) RecvReturnsOnCall

func (fake *Deliver) RecvReturnsOnCall(i int, result1 *peer.DeliverResponse, result2 error)

func (*Deliver) Send

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

func (*Deliver) SendArgsForCall

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

func (*Deliver) SendCallCount

func (fake *Deliver) SendCallCount() int

func (*Deliver) SendCalls

func (fake *Deliver) SendCalls(stub func(*common.Envelope) error)

func (*Deliver) SendMsg

func (fake *Deliver) SendMsg(arg1 interface{}) error

func (*Deliver) SendMsgArgsForCall

func (fake *Deliver) SendMsgArgsForCall(i int) interface{}

func (*Deliver) SendMsgCallCount

func (fake *Deliver) SendMsgCallCount() int

func (*Deliver) SendMsgCalls

func (fake *Deliver) SendMsgCalls(stub func(interface{}) error)

func (*Deliver) SendMsgReturns

func (fake *Deliver) SendMsgReturns(result1 error)

func (*Deliver) SendMsgReturnsOnCall

func (fake *Deliver) SendMsgReturnsOnCall(i int, result1 error)

func (*Deliver) SendReturns

func (fake *Deliver) SendReturns(result1 error)

func (*Deliver) SendReturnsOnCall

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

func (*Deliver) Trailer

func (fake *Deliver) Trailer() metadata.MD

func (*Deliver) TrailerCallCount

func (fake *Deliver) TrailerCallCount() int

func (*Deliver) TrailerCalls

func (fake *Deliver) TrailerCalls(stub func() metadata.MD)

func (*Deliver) TrailerReturns

func (fake *Deliver) TrailerReturns(result1 metadata.MD)

func (*Deliver) TrailerReturnsOnCall

func (fake *Deliver) TrailerReturnsOnCall(i int, result1 metadata.MD)

type EndorserClient

type EndorserClient struct {
	ProcessProposalStub func(context.Context, *peer.SignedProposal, ...grpc.CallOption) (*peer.ProposalResponse, error)
	// contains filtered or unexported fields
}

func (*EndorserClient) Invocations

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

func (*EndorserClient) ProcessProposal

func (fake *EndorserClient) ProcessProposal(arg1 context.Context, arg2 *peer.SignedProposal, arg3 ...grpc.CallOption) (*peer.ProposalResponse, error)

func (*EndorserClient) ProcessProposalArgsForCall

func (fake *EndorserClient) ProcessProposalArgsForCall(i int) (context.Context, *peer.SignedProposal, []grpc.CallOption)

func (*EndorserClient) ProcessProposalCallCount

func (fake *EndorserClient) ProcessProposalCallCount() int

func (*EndorserClient) ProcessProposalCalls

func (fake *EndorserClient) ProcessProposalCalls(stub func(context.Context, *peer.SignedProposal, ...grpc.CallOption) (*peer.ProposalResponse, error))

func (*EndorserClient) ProcessProposalReturns

func (fake *EndorserClient) ProcessProposalReturns(result1 *peer.ProposalResponse, result2 error)

func (*EndorserClient) ProcessProposalReturnsOnCall

func (fake *EndorserClient) ProcessProposalReturnsOnCall(i int, result1 *peer.ProposalResponse, result2 error)

type PeerDeliverClient

type PeerDeliverClient struct {
	DeliverStub func(context.Context, ...grpc.CallOption) (peer.Deliver_DeliverClient, error)

	DeliverFilteredStub func(context.Context, ...grpc.CallOption) (peer.Deliver_DeliverFilteredClient, error)

	DeliverWithPrivateDataStub func(context.Context, ...grpc.CallOption) (peer.Deliver_DeliverWithPrivateDataClient, error)
	// contains filtered or unexported fields
}

func (*PeerDeliverClient) Deliver

func (*PeerDeliverClient) DeliverArgsForCall

func (fake *PeerDeliverClient) DeliverArgsForCall(i int) (context.Context, []grpc.CallOption)

func (*PeerDeliverClient) DeliverCallCount

func (fake *PeerDeliverClient) DeliverCallCount() int

func (*PeerDeliverClient) DeliverCalls

func (fake *PeerDeliverClient) DeliverCalls(stub func(context.Context, ...grpc.CallOption) (peer.Deliver_DeliverClient, error))

func (*PeerDeliverClient) DeliverFiltered

func (fake *PeerDeliverClient) DeliverFiltered(arg1 context.Context, arg2 ...grpc.CallOption) (peer.Deliver_DeliverFilteredClient, error)

func (*PeerDeliverClient) DeliverFilteredArgsForCall

func (fake *PeerDeliverClient) DeliverFilteredArgsForCall(i int) (context.Context, []grpc.CallOption)

func (*PeerDeliverClient) DeliverFilteredCallCount

func (fake *PeerDeliverClient) DeliverFilteredCallCount() int

func (*PeerDeliverClient) DeliverFilteredCalls

func (fake *PeerDeliverClient) DeliverFilteredCalls(stub func(context.Context, ...grpc.CallOption) (peer.Deliver_DeliverFilteredClient, error))

func (*PeerDeliverClient) DeliverFilteredReturns

func (fake *PeerDeliverClient) DeliverFilteredReturns(result1 peer.Deliver_DeliverFilteredClient, result2 error)

func (*PeerDeliverClient) DeliverFilteredReturnsOnCall

func (fake *PeerDeliverClient) DeliverFilteredReturnsOnCall(i int, result1 peer.Deliver_DeliverFilteredClient, result2 error)

func (*PeerDeliverClient) DeliverReturns

func (fake *PeerDeliverClient) DeliverReturns(result1 peer.Deliver_DeliverClient, result2 error)

func (*PeerDeliverClient) DeliverReturnsOnCall

func (fake *PeerDeliverClient) DeliverReturnsOnCall(i int, result1 peer.Deliver_DeliverClient, result2 error)

func (*PeerDeliverClient) DeliverWithPrivateData

func (fake *PeerDeliverClient) DeliverWithPrivateData(arg1 context.Context, arg2 ...grpc.CallOption) (peer.Deliver_DeliverWithPrivateDataClient, error)

func (*PeerDeliverClient) DeliverWithPrivateDataArgsForCall

func (fake *PeerDeliverClient) DeliverWithPrivateDataArgsForCall(i int) (context.Context, []grpc.CallOption)

func (*PeerDeliverClient) DeliverWithPrivateDataCallCount

func (fake *PeerDeliverClient) DeliverWithPrivateDataCallCount() int

func (*PeerDeliverClient) DeliverWithPrivateDataCalls

func (fake *PeerDeliverClient) DeliverWithPrivateDataCalls(stub func(context.Context, ...grpc.CallOption) (peer.Deliver_DeliverWithPrivateDataClient, error))

func (*PeerDeliverClient) DeliverWithPrivateDataReturns

func (fake *PeerDeliverClient) DeliverWithPrivateDataReturns(result1 peer.Deliver_DeliverWithPrivateDataClient, result2 error)

func (*PeerDeliverClient) DeliverWithPrivateDataReturnsOnCall

func (fake *PeerDeliverClient) DeliverWithPrivateDataReturnsOnCall(i int, result1 peer.Deliver_DeliverWithPrivateDataClient, result2 error)

func (*PeerDeliverClient) Invocations

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

type PlatformRegistry

type PlatformRegistry struct {
	GetDeploymentPayloadStub func(string, string) ([]byte, error)

	NormalizePathStub func(string, string) (string, error)
	// contains filtered or unexported fields
}

func (*PlatformRegistry) GetDeploymentPayload

func (fake *PlatformRegistry) GetDeploymentPayload(arg1 string, arg2 string) ([]byte, error)

func (*PlatformRegistry) GetDeploymentPayloadArgsForCall

func (fake *PlatformRegistry) GetDeploymentPayloadArgsForCall(i int) (string, string)

func (*PlatformRegistry) GetDeploymentPayloadCallCount

func (fake *PlatformRegistry) GetDeploymentPayloadCallCount() int

func (*PlatformRegistry) GetDeploymentPayloadCalls

func (fake *PlatformRegistry) GetDeploymentPayloadCalls(stub func(string, string) ([]byte, error))

func (*PlatformRegistry) GetDeploymentPayloadReturns

func (fake *PlatformRegistry) GetDeploymentPayloadReturns(result1 []byte, result2 error)

func (*PlatformRegistry) GetDeploymentPayloadReturnsOnCall

func (fake *PlatformRegistry) GetDeploymentPayloadReturnsOnCall(i int, result1 []byte, result2 error)

func (*PlatformRegistry) Invocations

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

func (*PlatformRegistry) NormalizePath

func (fake *PlatformRegistry) NormalizePath(arg1 string, arg2 string) (string, error)

func (*PlatformRegistry) NormalizePathArgsForCall

func (fake *PlatformRegistry) NormalizePathArgsForCall(i int) (string, string)

func (*PlatformRegistry) NormalizePathCallCount

func (fake *PlatformRegistry) NormalizePathCallCount() int

func (*PlatformRegistry) NormalizePathCalls

func (fake *PlatformRegistry) NormalizePathCalls(stub func(string, string) (string, error))

func (*PlatformRegistry) NormalizePathReturns

func (fake *PlatformRegistry) NormalizePathReturns(result1 string, result2 error)

func (*PlatformRegistry) NormalizePathReturnsOnCall

func (fake *PlatformRegistry) NormalizePathReturnsOnCall(i int, result1 string, result2 error)

type Reader

type Reader struct {
	ReadFileStub func(string) ([]byte, error)
	// contains filtered or unexported fields
}

func (*Reader) Invocations

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

func (*Reader) ReadFile

func (fake *Reader) ReadFile(arg1 string) ([]byte, error)

func (*Reader) ReadFileArgsForCall

func (fake *Reader) ReadFileArgsForCall(i int) string

func (*Reader) ReadFileCallCount

func (fake *Reader) ReadFileCallCount() int

func (*Reader) ReadFileCalls

func (fake *Reader) ReadFileCalls(stub func(string) ([]byte, error))

func (*Reader) ReadFileReturns

func (fake *Reader) ReadFileReturns(result1 []byte, result2 error)

func (*Reader) ReadFileReturnsOnCall

func (fake *Reader) ReadFileReturnsOnCall(i int, result1 []byte, result2 error)

type Signer

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

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

func (*Signer) Invocations

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

func (*Signer) Serialize

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

func (*Signer) SerializeCallCount

func (fake *Signer) SerializeCallCount() int

func (*Signer) SerializeCalls

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

func (*Signer) SerializeReturns

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

func (*Signer) SerializeReturnsOnCall

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

func (*Signer) Sign

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

func (*Signer) SignArgsForCall

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

func (*Signer) SignCallCount

func (fake *Signer) SignCallCount() int

func (*Signer) SignCalls

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

func (*Signer) SignReturns

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

func (*Signer) SignReturnsOnCall

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

type Writer

type Writer struct {
	WriteFileStub func(string, string, []byte) error
	// contains filtered or unexported fields
}

func (*Writer) Invocations

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

func (*Writer) WriteFile

func (fake *Writer) WriteFile(arg1 string, arg2 string, arg3 []byte) error

func (*Writer) WriteFileArgsForCall

func (fake *Writer) WriteFileArgsForCall(i int) (string, string, []byte)

func (*Writer) WriteFileCallCount

func (fake *Writer) WriteFileCallCount() int

func (*Writer) WriteFileCalls

func (fake *Writer) WriteFileCalls(stub func(string, string, []byte) error)

func (*Writer) WriteFileReturns

func (fake *Writer) WriteFileReturns(result1 error)

func (*Writer) WriteFileReturnsOnCall

func (fake *Writer) WriteFileReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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