fabric: github.com/hyperledger/fabric/peer/common/mock Index | Files

package mock

import "github.com/hyperledger/fabric/peer/common/mock"

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Package Files

deliverclient.go deliverservice.go peerdeliverclient.go

type DeliverClient Uses

type DeliverClient struct {
    DeliverStub func(ctx context.Context, opts ...grpc.CallOption) (api.DeliverService, error)
    // contains filtered or unexported fields
}

func (*DeliverClient) Deliver Uses

func (fake *DeliverClient) Deliver(ctx context.Context, opts ...grpc.CallOption) (api.DeliverService, error)

func (*DeliverClient) DeliverArgsForCall Uses

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

func (*DeliverClient) DeliverCallCount Uses

func (fake *DeliverClient) DeliverCallCount() int

func (*DeliverClient) DeliverReturns Uses

func (fake *DeliverClient) DeliverReturns(result1 api.DeliverService, result2 error)

func (*DeliverClient) DeliverReturnsOnCall Uses

func (fake *DeliverClient) DeliverReturnsOnCall(i int, result1 api.DeliverService, result2 error)

func (*DeliverClient) Invocations Uses

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

type DeliverService Uses

type DeliverService struct {
    SendStub func(*cb.Envelope) error

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

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

func (*DeliverService) CloseSend Uses

func (fake *DeliverService) CloseSend() error

func (*DeliverService) CloseSendCallCount Uses

func (fake *DeliverService) CloseSendCallCount() int

func (*DeliverService) CloseSendReturns Uses

func (fake *DeliverService) CloseSendReturns(result1 error)

func (*DeliverService) CloseSendReturnsOnCall Uses

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

func (*DeliverService) Invocations Uses

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

func (*DeliverService) Recv Uses

func (fake *DeliverService) Recv() (*ab.DeliverResponse, error)

func (*DeliverService) RecvCallCount Uses

func (fake *DeliverService) RecvCallCount() int

func (*DeliverService) RecvReturns Uses

func (fake *DeliverService) RecvReturns(result1 *ab.DeliverResponse, result2 error)

func (*DeliverService) RecvReturnsOnCall Uses

func (fake *DeliverService) RecvReturnsOnCall(i int, result1 *ab.DeliverResponse, result2 error)

func (*DeliverService) Send Uses

func (fake *DeliverService) Send(arg1 *cb.Envelope) error

func (*DeliverService) SendArgsForCall Uses

func (fake *DeliverService) SendArgsForCall(i int) *cb.Envelope

func (*DeliverService) SendCallCount Uses

func (fake *DeliverService) SendCallCount() int

func (*DeliverService) SendReturns Uses

func (fake *DeliverService) SendReturns(result1 error)

func (*DeliverService) SendReturnsOnCall Uses

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

type PeerDeliverClient Uses

type PeerDeliverClient struct {
    DeliverStub func(ctx context.Context, opts ...grpc.CallOption) (apichaincode.Deliver, error)

    DeliverFilteredStub func(ctx context.Context, opts ...grpc.CallOption) (apichaincode.Deliver, error)
    // contains filtered or unexported fields
}

func (*PeerDeliverClient) Deliver Uses

func (fake *PeerDeliverClient) Deliver(ctx context.Context, opts ...grpc.CallOption) (apichaincode.Deliver, error)

func (*PeerDeliverClient) DeliverArgsForCall Uses

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

func (*PeerDeliverClient) DeliverCallCount Uses

func (fake *PeerDeliverClient) DeliverCallCount() int

func (*PeerDeliverClient) DeliverFiltered Uses

func (fake *PeerDeliverClient) DeliverFiltered(ctx context.Context, opts ...grpc.CallOption) (apichaincode.Deliver, error)

func (*PeerDeliverClient) DeliverFilteredArgsForCall Uses

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

func (*PeerDeliverClient) DeliverFilteredCallCount Uses

func (fake *PeerDeliverClient) DeliverFilteredCallCount() int

func (*PeerDeliverClient) DeliverFilteredReturns Uses

func (fake *PeerDeliverClient) DeliverFilteredReturns(result1 apichaincode.Deliver, result2 error)

func (*PeerDeliverClient) DeliverFilteredReturnsOnCall Uses

func (fake *PeerDeliverClient) DeliverFilteredReturnsOnCall(i int, result1 apichaincode.Deliver, result2 error)

func (*PeerDeliverClient) DeliverReturns Uses

func (fake *PeerDeliverClient) DeliverReturns(result1 apichaincode.Deliver, result2 error)

func (*PeerDeliverClient) DeliverReturnsOnCall Uses

func (fake *PeerDeliverClient) DeliverReturnsOnCall(i int, result1 apichaincode.Deliver, result2 error)

func (*PeerDeliverClient) Invocations Uses

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

Package mock imports 7 packages (graph). Updated 2018-07-06. Refresh now. Tools for package owners.