fake

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: 12 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockVerifier

type BlockVerifier struct {
	VerifyBlockStub func(common.ChannelID, uint64, *commona.Block) error
	// contains filtered or unexported fields
}

func (*BlockVerifier) Invocations

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

func (*BlockVerifier) VerifyBlock

func (fake *BlockVerifier) VerifyBlock(arg1 common.ChannelID, arg2 uint64, arg3 *commona.Block) error

func (*BlockVerifier) VerifyBlockArgsForCall

func (fake *BlockVerifier) VerifyBlockArgsForCall(i int) (common.ChannelID, uint64, *commona.Block)

func (*BlockVerifier) VerifyBlockCallCount

func (fake *BlockVerifier) VerifyBlockCallCount() int

func (*BlockVerifier) VerifyBlockCalls

func (fake *BlockVerifier) VerifyBlockCalls(stub func(common.ChannelID, uint64, *commona.Block) error)

func (*BlockVerifier) VerifyBlockReturns

func (fake *BlockVerifier) VerifyBlockReturns(result1 error)

func (*BlockVerifier) VerifyBlockReturnsOnCall

func (fake *BlockVerifier) VerifyBlockReturnsOnCall(i int, result1 error)

type DeliverClient

type DeliverClient struct {
	CloseSendStub func() error

	ContextStub func() context.Context

	HeaderStub func() (metadata.MD, error)

	RecvStub func() (*orderer.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 (*DeliverClient) CloseSend

func (fake *DeliverClient) CloseSend() error

func (*DeliverClient) CloseSendCallCount

func (fake *DeliverClient) CloseSendCallCount() int

func (*DeliverClient) CloseSendCalls

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

func (*DeliverClient) CloseSendReturns

func (fake *DeliverClient) CloseSendReturns(result1 error)

func (*DeliverClient) CloseSendReturnsOnCall

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

func (*DeliverClient) Context

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

func (*DeliverClient) ContextCallCount

func (fake *DeliverClient) ContextCallCount() int

func (*DeliverClient) ContextCalls

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

func (*DeliverClient) ContextReturns

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

func (*DeliverClient) ContextReturnsOnCall

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

func (*DeliverClient) Header

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

func (*DeliverClient) HeaderCallCount

func (fake *DeliverClient) HeaderCallCount() int

func (*DeliverClient) HeaderCalls

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

func (*DeliverClient) HeaderReturns

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

func (*DeliverClient) HeaderReturnsOnCall

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

func (*DeliverClient) Invocations

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

func (*DeliverClient) Recv

func (fake *DeliverClient) Recv() (*orderer.DeliverResponse, error)

func (*DeliverClient) RecvCallCount

func (fake *DeliverClient) RecvCallCount() int

func (*DeliverClient) RecvCalls

func (fake *DeliverClient) RecvCalls(stub func() (*orderer.DeliverResponse, error))

func (*DeliverClient) RecvMsg

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

func (*DeliverClient) RecvMsgArgsForCall

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

func (*DeliverClient) RecvMsgCallCount

func (fake *DeliverClient) RecvMsgCallCount() int

func (*DeliverClient) RecvMsgCalls

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

func (*DeliverClient) RecvMsgReturns

func (fake *DeliverClient) RecvMsgReturns(result1 error)

func (*DeliverClient) RecvMsgReturnsOnCall

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

func (*DeliverClient) RecvReturns

func (fake *DeliverClient) RecvReturns(result1 *orderer.DeliverResponse, result2 error)

func (*DeliverClient) RecvReturnsOnCall

func (fake *DeliverClient) RecvReturnsOnCall(i int, result1 *orderer.DeliverResponse, result2 error)

func (*DeliverClient) Send

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

func (*DeliverClient) SendArgsForCall

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

func (*DeliverClient) SendCallCount

func (fake *DeliverClient) SendCallCount() int

func (*DeliverClient) SendCalls

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

func (*DeliverClient) SendMsg

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

func (*DeliverClient) SendMsgArgsForCall

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

func (*DeliverClient) SendMsgCallCount

func (fake *DeliverClient) SendMsgCallCount() int

func (*DeliverClient) SendMsgCalls

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

func (*DeliverClient) SendMsgReturns

func (fake *DeliverClient) SendMsgReturns(result1 error)

func (*DeliverClient) SendMsgReturnsOnCall

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

func (*DeliverClient) SendReturns

func (fake *DeliverClient) SendReturns(result1 error)

func (*DeliverClient) SendReturnsOnCall

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

func (*DeliverClient) Trailer

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

func (*DeliverClient) TrailerCallCount

func (fake *DeliverClient) TrailerCallCount() int

func (*DeliverClient) TrailerCalls

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

func (*DeliverClient) TrailerReturns

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

func (*DeliverClient) TrailerReturnsOnCall

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

type DeliverStreamer

type DeliverStreamer struct {
	DeliverStub func(context.Context, *grpc.ClientConn) (orderer.AtomicBroadcast_DeliverClient, error)
	// contains filtered or unexported fields
}

func (*DeliverStreamer) Deliver

func (*DeliverStreamer) DeliverArgsForCall

func (fake *DeliverStreamer) DeliverArgsForCall(i int) (context.Context, *grpc.ClientConn)

func (*DeliverStreamer) DeliverCallCount

func (fake *DeliverStreamer) DeliverCallCount() int

func (*DeliverStreamer) DeliverCalls

func (*DeliverStreamer) DeliverReturns

func (fake *DeliverStreamer) DeliverReturns(result1 orderer.AtomicBroadcast_DeliverClient, result2 error)

func (*DeliverStreamer) DeliverReturnsOnCall

func (fake *DeliverStreamer) DeliverReturnsOnCall(i int, result1 orderer.AtomicBroadcast_DeliverClient, result2 error)

func (*DeliverStreamer) Invocations

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

type Dialer

type Dialer struct {
	DialStub func(string, *x509.CertPool) (*grpc.ClientConn, error)
	// contains filtered or unexported fields
}

func (*Dialer) Dial

func (fake *Dialer) Dial(arg1 string, arg2 *x509.CertPool) (*grpc.ClientConn, error)

func (*Dialer) DialArgsForCall

func (fake *Dialer) DialArgsForCall(i int) (string, *x509.CertPool)

func (*Dialer) DialCallCount

func (fake *Dialer) DialCallCount() int

func (*Dialer) DialCalls

func (fake *Dialer) DialCalls(stub func(string, *x509.CertPool) (*grpc.ClientConn, error))

func (*Dialer) DialReturns

func (fake *Dialer) DialReturns(result1 *grpc.ClientConn, result2 error)

func (*Dialer) DialReturnsOnCall

func (fake *Dialer) DialReturnsOnCall(i int, result1 *grpc.ClientConn, result2 error)

func (*Dialer) Invocations

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

type GossipServiceAdapter

type GossipServiceAdapter struct {
	AddPayloadStub func(string, *gossip.Payload) error

	GossipStub func(*gossip.GossipMessage)
	// contains filtered or unexported fields
}

func (*GossipServiceAdapter) AddPayload

func (fake *GossipServiceAdapter) AddPayload(arg1 string, arg2 *gossip.Payload) error

func (*GossipServiceAdapter) AddPayloadArgsForCall

func (fake *GossipServiceAdapter) AddPayloadArgsForCall(i int) (string, *gossip.Payload)

func (*GossipServiceAdapter) AddPayloadCallCount

func (fake *GossipServiceAdapter) AddPayloadCallCount() int

func (*GossipServiceAdapter) AddPayloadCalls

func (fake *GossipServiceAdapter) AddPayloadCalls(stub func(string, *gossip.Payload) error)

func (*GossipServiceAdapter) AddPayloadReturns

func (fake *GossipServiceAdapter) AddPayloadReturns(result1 error)

func (*GossipServiceAdapter) AddPayloadReturnsOnCall

func (fake *GossipServiceAdapter) AddPayloadReturnsOnCall(i int, result1 error)

func (*GossipServiceAdapter) Gossip

func (fake *GossipServiceAdapter) Gossip(arg1 *gossip.GossipMessage)

func (*GossipServiceAdapter) GossipArgsForCall

func (fake *GossipServiceAdapter) GossipArgsForCall(i int) *gossip.GossipMessage

func (*GossipServiceAdapter) GossipCallCount

func (fake *GossipServiceAdapter) GossipCallCount() int

func (*GossipServiceAdapter) GossipCalls

func (fake *GossipServiceAdapter) GossipCalls(stub func(*gossip.GossipMessage))

func (*GossipServiceAdapter) Invocations

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

type LedgerInfo

type LedgerInfo struct {
	LedgerHeightStub func() (uint64, error)
	// contains filtered or unexported fields
}

func (*LedgerInfo) Invocations

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

func (*LedgerInfo) LedgerHeight

func (fake *LedgerInfo) LedgerHeight() (uint64, error)

func (*LedgerInfo) LedgerHeightCallCount

func (fake *LedgerInfo) LedgerHeightCallCount() int

func (*LedgerInfo) LedgerHeightCalls

func (fake *LedgerInfo) LedgerHeightCalls(stub func() (uint64, error))

func (*LedgerInfo) LedgerHeightReturns

func (fake *LedgerInfo) LedgerHeightReturns(result1 uint64, result2 error)

func (*LedgerInfo) LedgerHeightReturnsOnCall

func (fake *LedgerInfo) LedgerHeightReturnsOnCall(i int, result1 uint64, result2 error)

type OrdererConnectionSource

type OrdererConnectionSource struct {
	RandomEndpointStub func() (*orderers.Endpoint, error)
	// contains filtered or unexported fields
}

func (*OrdererConnectionSource) Invocations

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

func (*OrdererConnectionSource) RandomEndpoint

func (fake *OrdererConnectionSource) RandomEndpoint() (*orderers.Endpoint, error)

func (*OrdererConnectionSource) RandomEndpointCallCount

func (fake *OrdererConnectionSource) RandomEndpointCallCount() int

func (*OrdererConnectionSource) RandomEndpointCalls

func (fake *OrdererConnectionSource) RandomEndpointCalls(stub func() (*orderers.Endpoint, error))

func (*OrdererConnectionSource) RandomEndpointReturns

func (fake *OrdererConnectionSource) RandomEndpointReturns(result1 *orderers.Endpoint, result2 error)

func (*OrdererConnectionSource) RandomEndpointReturnsOnCall

func (fake *OrdererConnectionSource) RandomEndpointReturnsOnCall(i int, result1 *orderers.Endpoint, 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 Sleeper

type Sleeper struct {
	SleepStub func(time.Duration)
	// contains filtered or unexported fields
}

func (*Sleeper) Invocations

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

func (*Sleeper) Sleep

func (fake *Sleeper) Sleep(arg1 time.Duration)

func (*Sleeper) SleepArgsForCall

func (fake *Sleeper) SleepArgsForCall(i int) time.Duration

func (*Sleeper) SleepCallCount

func (fake *Sleeper) SleepCallCount() int

func (*Sleeper) SleepCalls

func (fake *Sleeper) SleepCalls(stub func(time.Duration))

Jump to

Keyboard shortcuts

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