fabric: github.com/hyperledger/fabric/orderer/consensus/etcdraft/mocks Index | Files

package mocks

import "github.com/hyperledger/fabric/orderer/consensus/etcdraft/mocks"

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Package Files

chain_getter.go configurator.go inactive_chain_registry.go message_receiver.go mock_blockpuller.go mock_rpc.go receiver_getter.go

type ChainGetter Uses

type ChainGetter struct {
    mock.Mock
}

ChainGetter is an autogenerated mock type for the ChainGetter type

func (*ChainGetter) GetChain Uses

func (_m *ChainGetter) GetChain(chainID string) *multichannel.ChainSupport

GetChain provides a mock function with given fields: chainID

type FakeBlockPuller Uses

type FakeBlockPuller struct {
    CloseStub func()

    HeightsByEndpointsStub func() (map[string]uint64, error)

    PullBlockStub func(uint64) *common.Block
    // contains filtered or unexported fields
}

func (*FakeBlockPuller) Close Uses

func (fake *FakeBlockPuller) Close()

func (*FakeBlockPuller) CloseCallCount Uses

func (fake *FakeBlockPuller) CloseCallCount() int

func (*FakeBlockPuller) CloseCalls Uses

func (fake *FakeBlockPuller) CloseCalls(stub func())

func (*FakeBlockPuller) HeightsByEndpoints Uses

func (fake *FakeBlockPuller) HeightsByEndpoints() (map[string]uint64, error)

func (*FakeBlockPuller) HeightsByEndpointsCallCount Uses

func (fake *FakeBlockPuller) HeightsByEndpointsCallCount() int

func (*FakeBlockPuller) HeightsByEndpointsCalls Uses

func (fake *FakeBlockPuller) HeightsByEndpointsCalls(stub func() (map[string]uint64, error))

func (*FakeBlockPuller) HeightsByEndpointsReturns Uses

func (fake *FakeBlockPuller) HeightsByEndpointsReturns(result1 map[string]uint64, result2 error)

func (*FakeBlockPuller) HeightsByEndpointsReturnsOnCall Uses

func (fake *FakeBlockPuller) HeightsByEndpointsReturnsOnCall(i int, result1 map[string]uint64, result2 error)

func (*FakeBlockPuller) Invocations Uses

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

func (*FakeBlockPuller) PullBlock Uses

func (fake *FakeBlockPuller) PullBlock(arg1 uint64) *common.Block

func (*FakeBlockPuller) PullBlockArgsForCall Uses

func (fake *FakeBlockPuller) PullBlockArgsForCall(i int) uint64

func (*FakeBlockPuller) PullBlockCallCount Uses

func (fake *FakeBlockPuller) PullBlockCallCount() int

func (*FakeBlockPuller) PullBlockCalls Uses

func (fake *FakeBlockPuller) PullBlockCalls(stub func(uint64) *common.Block)

func (*FakeBlockPuller) PullBlockReturns Uses

func (fake *FakeBlockPuller) PullBlockReturns(result1 *common.Block)

func (*FakeBlockPuller) PullBlockReturnsOnCall Uses

func (fake *FakeBlockPuller) PullBlockReturnsOnCall(i int, result1 *common.Block)

type FakeConfigurator Uses

type FakeConfigurator struct {
    ConfigureStub func(string, []cluster.RemoteNode)
    // contains filtered or unexported fields
}

func (*FakeConfigurator) Configure Uses

func (fake *FakeConfigurator) Configure(arg1 string, arg2 []cluster.RemoteNode)

func (*FakeConfigurator) ConfigureArgsForCall Uses

func (fake *FakeConfigurator) ConfigureArgsForCall(i int) (string, []cluster.RemoteNode)

func (*FakeConfigurator) ConfigureCallCount Uses

func (fake *FakeConfigurator) ConfigureCallCount() int

func (*FakeConfigurator) ConfigureCalls Uses

func (fake *FakeConfigurator) ConfigureCalls(stub func(string, []cluster.RemoteNode))

func (*FakeConfigurator) Invocations Uses

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

type FakeRPC Uses

type FakeRPC struct {
    SendConsensusStub func(uint64, *orderer.ConsensusRequest) error

    SendSubmitStub func(uint64, *orderer.SubmitRequest) error
    // contains filtered or unexported fields
}

func (*FakeRPC) Invocations Uses

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

func (*FakeRPC) SendConsensus Uses

func (fake *FakeRPC) SendConsensus(arg1 uint64, arg2 *orderer.ConsensusRequest) error

func (*FakeRPC) SendConsensusArgsForCall Uses

func (fake *FakeRPC) SendConsensusArgsForCall(i int) (uint64, *orderer.ConsensusRequest)

func (*FakeRPC) SendConsensusCallCount Uses

func (fake *FakeRPC) SendConsensusCallCount() int

func (*FakeRPC) SendConsensusCalls Uses

func (fake *FakeRPC) SendConsensusCalls(stub func(uint64, *orderer.ConsensusRequest) error)

func (*FakeRPC) SendConsensusReturns Uses

func (fake *FakeRPC) SendConsensusReturns(result1 error)

func (*FakeRPC) SendConsensusReturnsOnCall Uses

func (fake *FakeRPC) SendConsensusReturnsOnCall(i int, result1 error)

func (*FakeRPC) SendSubmit Uses

func (fake *FakeRPC) SendSubmit(arg1 uint64, arg2 *orderer.SubmitRequest) error

func (*FakeRPC) SendSubmitArgsForCall Uses

func (fake *FakeRPC) SendSubmitArgsForCall(i int) (uint64, *orderer.SubmitRequest)

func (*FakeRPC) SendSubmitCallCount Uses

func (fake *FakeRPC) SendSubmitCallCount() int

func (*FakeRPC) SendSubmitCalls Uses

func (fake *FakeRPC) SendSubmitCalls(stub func(uint64, *orderer.SubmitRequest) error)

func (*FakeRPC) SendSubmitReturns Uses

func (fake *FakeRPC) SendSubmitReturns(result1 error)

func (*FakeRPC) SendSubmitReturnsOnCall Uses

func (fake *FakeRPC) SendSubmitReturnsOnCall(i int, result1 error)

type InactiveChainRegistry Uses

type InactiveChainRegistry struct {
    mock.Mock
}

InactiveChainRegistry is an autogenerated mock type for the InactiveChainRegistry type

func (*InactiveChainRegistry) TrackChain Uses

func (_m *InactiveChainRegistry) TrackChain(chainName string, genesisBlock *common.Block, createChain etcdraft.CreateChainCallback)

TrackChain provides a mock function with given fields: chainName, genesisBlock, createChain

type MessageReceiver Uses

type MessageReceiver struct {
    mock.Mock
}

MessageReceiver is an autogenerated mock type for the MessageReceiver type

func (*MessageReceiver) Consensus Uses

func (_m *MessageReceiver) Consensus(req *orderer.ConsensusRequest, sender uint64) error

Consensus provides a mock function with given fields: req, sender

func (*MessageReceiver) Submit Uses

func (_m *MessageReceiver) Submit(req *orderer.SubmitRequest, sender uint64) error

Submit provides a mock function with given fields: req, sender

type ReceiverGetter Uses

type ReceiverGetter struct {
    mock.Mock
}

ReceiverGetter is an autogenerated mock type for the ReceiverGetter type

func (*ReceiverGetter) ReceiverByChain Uses

func (_m *ReceiverGetter) ReceiverByChain(channelID string) etcdraft.MessageReceiver

ReceiverByChain provides a mock function with given fields: channelID

Package mocks imports 7 packages (graph). Updated 2019-03-21. Refresh now. Tools for package owners.