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

package mock

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

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

Package Files

block_iterator.go block_reader.go chain.go chain_manager.go filtered_response_sender.go inspector.go policy_checker.go receiver.go response_sender.go

type BlockIterator Uses

type BlockIterator struct {
    CloseStub func()

    NextStub func() (*common.Block, common.Status)
    // contains filtered or unexported fields
}

func (*BlockIterator) Close Uses

func (fake *BlockIterator) Close()

func (*BlockIterator) CloseCallCount Uses

func (fake *BlockIterator) CloseCallCount() int

func (*BlockIterator) CloseCalls Uses

func (fake *BlockIterator) CloseCalls(stub func())

func (*BlockIterator) Invocations Uses

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

func (*BlockIterator) Next Uses

func (fake *BlockIterator) Next() (*common.Block, common.Status)

func (*BlockIterator) NextCallCount Uses

func (fake *BlockIterator) NextCallCount() int

func (*BlockIterator) NextCalls Uses

func (fake *BlockIterator) NextCalls(stub func() (*common.Block, common.Status))

func (*BlockIterator) NextReturns Uses

func (fake *BlockIterator) NextReturns(result1 *common.Block, result2 common.Status)

func (*BlockIterator) NextReturnsOnCall Uses

func (fake *BlockIterator) NextReturnsOnCall(i int, result1 *common.Block, result2 common.Status)

type BlockReader Uses

type BlockReader struct {
    HeightStub func() uint64

    IteratorStub func(*orderer.SeekPosition) (blockledger.Iterator, uint64)
    // contains filtered or unexported fields
}

func (*BlockReader) Height Uses

func (fake *BlockReader) Height() uint64

func (*BlockReader) HeightCallCount Uses

func (fake *BlockReader) HeightCallCount() int

func (*BlockReader) HeightCalls Uses

func (fake *BlockReader) HeightCalls(stub func() uint64)

func (*BlockReader) HeightReturns Uses

func (fake *BlockReader) HeightReturns(result1 uint64)

func (*BlockReader) HeightReturnsOnCall Uses

func (fake *BlockReader) HeightReturnsOnCall(i int, result1 uint64)

func (*BlockReader) Invocations Uses

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

func (*BlockReader) Iterator Uses

func (fake *BlockReader) Iterator(arg1 *orderer.SeekPosition) (blockledger.Iterator, uint64)

func (*BlockReader) IteratorArgsForCall Uses

func (fake *BlockReader) IteratorArgsForCall(i int) *orderer.SeekPosition

func (*BlockReader) IteratorCallCount Uses

func (fake *BlockReader) IteratorCallCount() int

func (*BlockReader) IteratorCalls Uses

func (fake *BlockReader) IteratorCalls(stub func(*orderer.SeekPosition) (blockledger.Iterator, uint64))

func (*BlockReader) IteratorReturns Uses

func (fake *BlockReader) IteratorReturns(result1 blockledger.Iterator, result2 uint64)

func (*BlockReader) IteratorReturnsOnCall Uses

func (fake *BlockReader) IteratorReturnsOnCall(i int, result1 blockledger.Iterator, result2 uint64)

type Chain Uses

type Chain struct {
    ErroredStub func() <-chan struct{}

    PolicyManagerStub func() policies.Manager

    ReaderStub func() blockledger.Reader

    SequenceStub func() uint64
    // contains filtered or unexported fields
}

func (*Chain) Errored Uses

func (fake *Chain) Errored() <-chan struct{}

func (*Chain) ErroredCallCount Uses

func (fake *Chain) ErroredCallCount() int

func (*Chain) ErroredCalls Uses

func (fake *Chain) ErroredCalls(stub func() <-chan struct{})

func (*Chain) ErroredReturns Uses

func (fake *Chain) ErroredReturns(result1 <-chan struct{})

func (*Chain) ErroredReturnsOnCall Uses

func (fake *Chain) ErroredReturnsOnCall(i int, result1 <-chan struct{})

func (*Chain) Invocations Uses

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

func (*Chain) PolicyManager Uses

func (fake *Chain) PolicyManager() policies.Manager

func (*Chain) PolicyManagerCallCount Uses

func (fake *Chain) PolicyManagerCallCount() int

func (*Chain) PolicyManagerCalls Uses

func (fake *Chain) PolicyManagerCalls(stub func() policies.Manager)

func (*Chain) PolicyManagerReturns Uses

func (fake *Chain) PolicyManagerReturns(result1 policies.Manager)

func (*Chain) PolicyManagerReturnsOnCall Uses

func (fake *Chain) PolicyManagerReturnsOnCall(i int, result1 policies.Manager)

func (*Chain) Reader Uses

func (fake *Chain) Reader() blockledger.Reader

func (*Chain) ReaderCallCount Uses

func (fake *Chain) ReaderCallCount() int

func (*Chain) ReaderCalls Uses

func (fake *Chain) ReaderCalls(stub func() blockledger.Reader)

func (*Chain) ReaderReturns Uses

func (fake *Chain) ReaderReturns(result1 blockledger.Reader)

func (*Chain) ReaderReturnsOnCall Uses

func (fake *Chain) ReaderReturnsOnCall(i int, result1 blockledger.Reader)

func (*Chain) Sequence Uses

func (fake *Chain) Sequence() uint64

func (*Chain) SequenceCallCount Uses

func (fake *Chain) SequenceCallCount() int

func (*Chain) SequenceCalls Uses

func (fake *Chain) SequenceCalls(stub func() uint64)

func (*Chain) SequenceReturns Uses

func (fake *Chain) SequenceReturns(result1 uint64)

func (*Chain) SequenceReturnsOnCall Uses

func (fake *Chain) SequenceReturnsOnCall(i int, result1 uint64)

type ChainManager Uses

type ChainManager struct {
    GetChainStub func(string) deliver.Chain
    // contains filtered or unexported fields
}

func (*ChainManager) GetChain Uses

func (fake *ChainManager) GetChain(arg1 string) deliver.Chain

func (*ChainManager) GetChainArgsForCall Uses

func (fake *ChainManager) GetChainArgsForCall(i int) string

func (*ChainManager) GetChainCallCount Uses

func (fake *ChainManager) GetChainCallCount() int

func (*ChainManager) GetChainCalls Uses

func (fake *ChainManager) GetChainCalls(stub func(string) deliver.Chain)

func (*ChainManager) GetChainReturns Uses

func (fake *ChainManager) GetChainReturns(result1 deliver.Chain)

func (*ChainManager) GetChainReturnsOnCall Uses

func (fake *ChainManager) GetChainReturnsOnCall(i int, result1 deliver.Chain)

func (*ChainManager) Invocations Uses

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

type FilteredResponseSender Uses

type FilteredResponseSender struct {
    IsFilteredStub func() bool

    SendBlockResponseStub func(*common.Block) error

    SendStatusResponseStub func(common.Status) error
    // contains filtered or unexported fields
}

func (*FilteredResponseSender) Invocations Uses

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

func (*FilteredResponseSender) IsFiltered Uses

func (fake *FilteredResponseSender) IsFiltered() bool

func (*FilteredResponseSender) IsFilteredCallCount Uses

func (fake *FilteredResponseSender) IsFilteredCallCount() int

func (*FilteredResponseSender) IsFilteredCalls Uses

func (fake *FilteredResponseSender) IsFilteredCalls(stub func() bool)

func (*FilteredResponseSender) IsFilteredReturns Uses

func (fake *FilteredResponseSender) IsFilteredReturns(result1 bool)

func (*FilteredResponseSender) IsFilteredReturnsOnCall Uses

func (fake *FilteredResponseSender) IsFilteredReturnsOnCall(i int, result1 bool)

func (*FilteredResponseSender) SendBlockResponse Uses

func (fake *FilteredResponseSender) SendBlockResponse(arg1 *common.Block) error

func (*FilteredResponseSender) SendBlockResponseArgsForCall Uses

func (fake *FilteredResponseSender) SendBlockResponseArgsForCall(i int) *common.Block

func (*FilteredResponseSender) SendBlockResponseCallCount Uses

func (fake *FilteredResponseSender) SendBlockResponseCallCount() int

func (*FilteredResponseSender) SendBlockResponseCalls Uses

func (fake *FilteredResponseSender) SendBlockResponseCalls(stub func(*common.Block) error)

func (*FilteredResponseSender) SendBlockResponseReturns Uses

func (fake *FilteredResponseSender) SendBlockResponseReturns(result1 error)

func (*FilteredResponseSender) SendBlockResponseReturnsOnCall Uses

func (fake *FilteredResponseSender) SendBlockResponseReturnsOnCall(i int, result1 error)

func (*FilteredResponseSender) SendStatusResponse Uses

func (fake *FilteredResponseSender) SendStatusResponse(arg1 common.Status) error

func (*FilteredResponseSender) SendStatusResponseArgsForCall Uses

func (fake *FilteredResponseSender) SendStatusResponseArgsForCall(i int) common.Status

func (*FilteredResponseSender) SendStatusResponseCallCount Uses

func (fake *FilteredResponseSender) SendStatusResponseCallCount() int

func (*FilteredResponseSender) SendStatusResponseCalls Uses

func (fake *FilteredResponseSender) SendStatusResponseCalls(stub func(common.Status) error)

func (*FilteredResponseSender) SendStatusResponseReturns Uses

func (fake *FilteredResponseSender) SendStatusResponseReturns(result1 error)

func (*FilteredResponseSender) SendStatusResponseReturnsOnCall Uses

func (fake *FilteredResponseSender) SendStatusResponseReturnsOnCall(i int, result1 error)

type Inspector Uses

type Inspector struct {
    InspectStub func(context.Context, proto.Message) error
    // contains filtered or unexported fields
}

func (*Inspector) Inspect Uses

func (fake *Inspector) Inspect(arg1 context.Context, arg2 proto.Message) error

func (*Inspector) InspectArgsForCall Uses

func (fake *Inspector) InspectArgsForCall(i int) (context.Context, proto.Message)

func (*Inspector) InspectCallCount Uses

func (fake *Inspector) InspectCallCount() int

func (*Inspector) InspectCalls Uses

func (fake *Inspector) InspectCalls(stub func(context.Context, proto.Message) error)

func (*Inspector) InspectReturns Uses

func (fake *Inspector) InspectReturns(result1 error)

func (*Inspector) InspectReturnsOnCall Uses

func (fake *Inspector) InspectReturnsOnCall(i int, result1 error)

func (*Inspector) Invocations Uses

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

type PolicyChecker Uses

type PolicyChecker struct {
    CheckPolicyStub func(*common.Envelope, string) error
    // contains filtered or unexported fields
}

func (*PolicyChecker) CheckPolicy Uses

func (fake *PolicyChecker) CheckPolicy(arg1 *common.Envelope, arg2 string) error

func (*PolicyChecker) CheckPolicyArgsForCall Uses

func (fake *PolicyChecker) CheckPolicyArgsForCall(i int) (*common.Envelope, string)

func (*PolicyChecker) CheckPolicyCallCount Uses

func (fake *PolicyChecker) CheckPolicyCallCount() int

func (*PolicyChecker) CheckPolicyCalls Uses

func (fake *PolicyChecker) CheckPolicyCalls(stub func(*common.Envelope, string) error)

func (*PolicyChecker) CheckPolicyReturns Uses

func (fake *PolicyChecker) CheckPolicyReturns(result1 error)

func (*PolicyChecker) CheckPolicyReturnsOnCall Uses

func (fake *PolicyChecker) CheckPolicyReturnsOnCall(i int, result1 error)

func (*PolicyChecker) Invocations Uses

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

type Receiver Uses

type Receiver struct {
    RecvStub func() (*common.Envelope, error)
    // contains filtered or unexported fields
}

func (*Receiver) Invocations Uses

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

func (*Receiver) Recv Uses

func (fake *Receiver) Recv() (*common.Envelope, error)

func (*Receiver) RecvCallCount Uses

func (fake *Receiver) RecvCallCount() int

func (*Receiver) RecvCalls Uses

func (fake *Receiver) RecvCalls(stub func() (*common.Envelope, error))

func (*Receiver) RecvReturns Uses

func (fake *Receiver) RecvReturns(result1 *common.Envelope, result2 error)

func (*Receiver) RecvReturnsOnCall Uses

func (fake *Receiver) RecvReturnsOnCall(i int, result1 *common.Envelope, result2 error)

type ResponseSender Uses

type ResponseSender struct {
    SendBlockResponseStub func(*common.Block) error

    SendStatusResponseStub func(common.Status) error
    // contains filtered or unexported fields
}

func (*ResponseSender) Invocations Uses

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

func (*ResponseSender) SendBlockResponse Uses

func (fake *ResponseSender) SendBlockResponse(arg1 *common.Block) error

func (*ResponseSender) SendBlockResponseArgsForCall Uses

func (fake *ResponseSender) SendBlockResponseArgsForCall(i int) *common.Block

func (*ResponseSender) SendBlockResponseCallCount Uses

func (fake *ResponseSender) SendBlockResponseCallCount() int

func (*ResponseSender) SendBlockResponseCalls Uses

func (fake *ResponseSender) SendBlockResponseCalls(stub func(*common.Block) error)

func (*ResponseSender) SendBlockResponseReturns Uses

func (fake *ResponseSender) SendBlockResponseReturns(result1 error)

func (*ResponseSender) SendBlockResponseReturnsOnCall Uses

func (fake *ResponseSender) SendBlockResponseReturnsOnCall(i int, result1 error)

func (*ResponseSender) SendStatusResponse Uses

func (fake *ResponseSender) SendStatusResponse(arg1 common.Status) error

func (*ResponseSender) SendStatusResponseArgsForCall Uses

func (fake *ResponseSender) SendStatusResponseArgsForCall(i int) common.Status

func (*ResponseSender) SendStatusResponseCallCount Uses

func (fake *ResponseSender) SendStatusResponseCallCount() int

func (*ResponseSender) SendStatusResponseCalls Uses

func (fake *ResponseSender) SendStatusResponseCalls(stub func(common.Status) error)

func (*ResponseSender) SendStatusResponseReturns Uses

func (fake *ResponseSender) SendStatusResponseReturns(result1 error)

func (*ResponseSender) SendStatusResponseReturnsOnCall Uses

func (fake *ResponseSender) SendStatusResponseReturnsOnCall(i int, result1 error)

Package mock imports 8 packages (graph). Updated 2018-12-12. Refresh now. Tools for package owners.