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

package mocks

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

Code generated by counterfeiter. DO NOT EDIT.

Index

Package Files

mock_consenter_support.go

type FakeConsenterSupport Uses

type FakeConsenterSupport struct {
    AppendStub func(*common.Block) error

    BlockStub func(uint64) *common.Block

    BlockCutterStub func() blockcutter.Receiver

    ChainIDStub func() string

    ChannelConfigStub func() channelconfig.Channel

    ClassifyMsgStub func(*common.ChannelHeader) msgprocessor.Classification

    CreateNextBlockStub func([]*common.Envelope) *common.Block

    HeightStub func() uint64

    NewSignatureHeaderStub func() (*common.SignatureHeader, error)

    ProcessConfigMsgStub func(*common.Envelope) (*common.Envelope, uint64, error)

    ProcessConfigUpdateMsgStub func(*common.Envelope) (*common.Envelope, uint64, error)

    ProcessNormalMsgStub func(*common.Envelope) (uint64, error)

    SequenceStub func() uint64

    SharedConfigStub func() channelconfig.Orderer

    SignStub func([]byte) ([]byte, error)

    VerifyBlockSignatureStub func([]*common.SignedData, *common.ConfigEnvelope) error

    WriteBlockStub func(*common.Block, []byte)

    WriteConfigBlockStub func(*common.Block, []byte)
    // contains filtered or unexported fields
}

func (*FakeConsenterSupport) Append Uses

func (fake *FakeConsenterSupport) Append(arg1 *common.Block) error

func (*FakeConsenterSupport) AppendArgsForCall Uses

func (fake *FakeConsenterSupport) AppendArgsForCall(i int) *common.Block

func (*FakeConsenterSupport) AppendCallCount Uses

func (fake *FakeConsenterSupport) AppendCallCount() int

func (*FakeConsenterSupport) AppendCalls Uses

func (fake *FakeConsenterSupport) AppendCalls(stub func(*common.Block) error)

func (*FakeConsenterSupport) AppendReturns Uses

func (fake *FakeConsenterSupport) AppendReturns(result1 error)

func (*FakeConsenterSupport) AppendReturnsOnCall Uses

func (fake *FakeConsenterSupport) AppendReturnsOnCall(i int, result1 error)

func (*FakeConsenterSupport) Block Uses

func (fake *FakeConsenterSupport) Block(arg1 uint64) *common.Block

func (*FakeConsenterSupport) BlockArgsForCall Uses

func (fake *FakeConsenterSupport) BlockArgsForCall(i int) uint64

func (*FakeConsenterSupport) BlockCallCount Uses

func (fake *FakeConsenterSupport) BlockCallCount() int

func (*FakeConsenterSupport) BlockCalls Uses

func (fake *FakeConsenterSupport) BlockCalls(stub func(uint64) *common.Block)

func (*FakeConsenterSupport) BlockCutter Uses

func (fake *FakeConsenterSupport) BlockCutter() blockcutter.Receiver

func (*FakeConsenterSupport) BlockCutterCallCount Uses

func (fake *FakeConsenterSupport) BlockCutterCallCount() int

func (*FakeConsenterSupport) BlockCutterCalls Uses

func (fake *FakeConsenterSupport) BlockCutterCalls(stub func() blockcutter.Receiver)

func (*FakeConsenterSupport) BlockCutterReturns Uses

func (fake *FakeConsenterSupport) BlockCutterReturns(result1 blockcutter.Receiver)

func (*FakeConsenterSupport) BlockCutterReturnsOnCall Uses

func (fake *FakeConsenterSupport) BlockCutterReturnsOnCall(i int, result1 blockcutter.Receiver)

func (*FakeConsenterSupport) BlockReturns Uses

func (fake *FakeConsenterSupport) BlockReturns(result1 *common.Block)

func (*FakeConsenterSupport) BlockReturnsOnCall Uses

func (fake *FakeConsenterSupport) BlockReturnsOnCall(i int, result1 *common.Block)

func (*FakeConsenterSupport) ChainID Uses

func (fake *FakeConsenterSupport) ChainID() string

func (*FakeConsenterSupport) ChainIDCallCount Uses

func (fake *FakeConsenterSupport) ChainIDCallCount() int

func (*FakeConsenterSupport) ChainIDCalls Uses

func (fake *FakeConsenterSupport) ChainIDCalls(stub func() string)

func (*FakeConsenterSupport) ChainIDReturns Uses

func (fake *FakeConsenterSupport) ChainIDReturns(result1 string)

func (*FakeConsenterSupport) ChainIDReturnsOnCall Uses

func (fake *FakeConsenterSupport) ChainIDReturnsOnCall(i int, result1 string)

func (*FakeConsenterSupport) ChannelConfig Uses

func (fake *FakeConsenterSupport) ChannelConfig() channelconfig.Channel

func (*FakeConsenterSupport) ChannelConfigCallCount Uses

func (fake *FakeConsenterSupport) ChannelConfigCallCount() int

func (*FakeConsenterSupport) ChannelConfigCalls Uses

func (fake *FakeConsenterSupport) ChannelConfigCalls(stub func() channelconfig.Channel)

func (*FakeConsenterSupport) ChannelConfigReturns Uses

func (fake *FakeConsenterSupport) ChannelConfigReturns(result1 channelconfig.Channel)

func (*FakeConsenterSupport) ChannelConfigReturnsOnCall Uses

func (fake *FakeConsenterSupport) ChannelConfigReturnsOnCall(i int, result1 channelconfig.Channel)

func (*FakeConsenterSupport) ClassifyMsg Uses

func (fake *FakeConsenterSupport) ClassifyMsg(arg1 *common.ChannelHeader) msgprocessor.Classification

func (*FakeConsenterSupport) ClassifyMsgArgsForCall Uses

func (fake *FakeConsenterSupport) ClassifyMsgArgsForCall(i int) *common.ChannelHeader

func (*FakeConsenterSupport) ClassifyMsgCallCount Uses

func (fake *FakeConsenterSupport) ClassifyMsgCallCount() int

func (*FakeConsenterSupport) ClassifyMsgCalls Uses

func (fake *FakeConsenterSupport) ClassifyMsgCalls(stub func(*common.ChannelHeader) msgprocessor.Classification)

func (*FakeConsenterSupport) ClassifyMsgReturns Uses

func (fake *FakeConsenterSupport) ClassifyMsgReturns(result1 msgprocessor.Classification)

func (*FakeConsenterSupport) ClassifyMsgReturnsOnCall Uses

func (fake *FakeConsenterSupport) ClassifyMsgReturnsOnCall(i int, result1 msgprocessor.Classification)

func (*FakeConsenterSupport) CreateNextBlock Uses

func (fake *FakeConsenterSupport) CreateNextBlock(arg1 []*common.Envelope) *common.Block

func (*FakeConsenterSupport) CreateNextBlockArgsForCall Uses

func (fake *FakeConsenterSupport) CreateNextBlockArgsForCall(i int) []*common.Envelope

func (*FakeConsenterSupport) CreateNextBlockCallCount Uses

func (fake *FakeConsenterSupport) CreateNextBlockCallCount() int

func (*FakeConsenterSupport) CreateNextBlockCalls Uses

func (fake *FakeConsenterSupport) CreateNextBlockCalls(stub func([]*common.Envelope) *common.Block)

func (*FakeConsenterSupport) CreateNextBlockReturns Uses

func (fake *FakeConsenterSupport) CreateNextBlockReturns(result1 *common.Block)

func (*FakeConsenterSupport) CreateNextBlockReturnsOnCall Uses

func (fake *FakeConsenterSupport) CreateNextBlockReturnsOnCall(i int, result1 *common.Block)

func (*FakeConsenterSupport) Height Uses

func (fake *FakeConsenterSupport) Height() uint64

func (*FakeConsenterSupport) HeightCallCount Uses

func (fake *FakeConsenterSupport) HeightCallCount() int

func (*FakeConsenterSupport) HeightCalls Uses

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

func (*FakeConsenterSupport) HeightReturns Uses

func (fake *FakeConsenterSupport) HeightReturns(result1 uint64)

func (*FakeConsenterSupport) HeightReturnsOnCall Uses

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

func (*FakeConsenterSupport) Invocations Uses

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

func (*FakeConsenterSupport) NewSignatureHeader Uses

func (fake *FakeConsenterSupport) NewSignatureHeader() (*common.SignatureHeader, error)

func (*FakeConsenterSupport) NewSignatureHeaderCallCount Uses

func (fake *FakeConsenterSupport) NewSignatureHeaderCallCount() int

func (*FakeConsenterSupport) NewSignatureHeaderCalls Uses

func (fake *FakeConsenterSupport) NewSignatureHeaderCalls(stub func() (*common.SignatureHeader, error))

func (*FakeConsenterSupport) NewSignatureHeaderReturns Uses

func (fake *FakeConsenterSupport) NewSignatureHeaderReturns(result1 *common.SignatureHeader, result2 error)

func (*FakeConsenterSupport) NewSignatureHeaderReturnsOnCall Uses

func (fake *FakeConsenterSupport) NewSignatureHeaderReturnsOnCall(i int, result1 *common.SignatureHeader, result2 error)

func (*FakeConsenterSupport) ProcessConfigMsg Uses

func (fake *FakeConsenterSupport) ProcessConfigMsg(arg1 *common.Envelope) (*common.Envelope, uint64, error)

func (*FakeConsenterSupport) ProcessConfigMsgArgsForCall Uses

func (fake *FakeConsenterSupport) ProcessConfigMsgArgsForCall(i int) *common.Envelope

func (*FakeConsenterSupport) ProcessConfigMsgCallCount Uses

func (fake *FakeConsenterSupport) ProcessConfigMsgCallCount() int

func (*FakeConsenterSupport) ProcessConfigMsgCalls Uses

func (fake *FakeConsenterSupport) ProcessConfigMsgCalls(stub func(*common.Envelope) (*common.Envelope, uint64, error))

func (*FakeConsenterSupport) ProcessConfigMsgReturns Uses

func (fake *FakeConsenterSupport) ProcessConfigMsgReturns(result1 *common.Envelope, result2 uint64, result3 error)

func (*FakeConsenterSupport) ProcessConfigMsgReturnsOnCall Uses

func (fake *FakeConsenterSupport) ProcessConfigMsgReturnsOnCall(i int, result1 *common.Envelope, result2 uint64, result3 error)

func (*FakeConsenterSupport) ProcessConfigUpdateMsg Uses

func (fake *FakeConsenterSupport) ProcessConfigUpdateMsg(arg1 *common.Envelope) (*common.Envelope, uint64, error)

func (*FakeConsenterSupport) ProcessConfigUpdateMsgArgsForCall Uses

func (fake *FakeConsenterSupport) ProcessConfigUpdateMsgArgsForCall(i int) *common.Envelope

func (*FakeConsenterSupport) ProcessConfigUpdateMsgCallCount Uses

func (fake *FakeConsenterSupport) ProcessConfigUpdateMsgCallCount() int

func (*FakeConsenterSupport) ProcessConfigUpdateMsgCalls Uses

func (fake *FakeConsenterSupport) ProcessConfigUpdateMsgCalls(stub func(*common.Envelope) (*common.Envelope, uint64, error))

func (*FakeConsenterSupport) ProcessConfigUpdateMsgReturns Uses

func (fake *FakeConsenterSupport) ProcessConfigUpdateMsgReturns(result1 *common.Envelope, result2 uint64, result3 error)

func (*FakeConsenterSupport) ProcessConfigUpdateMsgReturnsOnCall Uses

func (fake *FakeConsenterSupport) ProcessConfigUpdateMsgReturnsOnCall(i int, result1 *common.Envelope, result2 uint64, result3 error)

func (*FakeConsenterSupport) ProcessNormalMsg Uses

func (fake *FakeConsenterSupport) ProcessNormalMsg(arg1 *common.Envelope) (uint64, error)

func (*FakeConsenterSupport) ProcessNormalMsgArgsForCall Uses

func (fake *FakeConsenterSupport) ProcessNormalMsgArgsForCall(i int) *common.Envelope

func (*FakeConsenterSupport) ProcessNormalMsgCallCount Uses

func (fake *FakeConsenterSupport) ProcessNormalMsgCallCount() int

func (*FakeConsenterSupport) ProcessNormalMsgCalls Uses

func (fake *FakeConsenterSupport) ProcessNormalMsgCalls(stub func(*common.Envelope) (uint64, error))

func (*FakeConsenterSupport) ProcessNormalMsgReturns Uses

func (fake *FakeConsenterSupport) ProcessNormalMsgReturns(result1 uint64, result2 error)

func (*FakeConsenterSupport) ProcessNormalMsgReturnsOnCall Uses

func (fake *FakeConsenterSupport) ProcessNormalMsgReturnsOnCall(i int, result1 uint64, result2 error)

func (*FakeConsenterSupport) Sequence Uses

func (fake *FakeConsenterSupport) Sequence() uint64

func (*FakeConsenterSupport) SequenceCallCount Uses

func (fake *FakeConsenterSupport) SequenceCallCount() int

func (*FakeConsenterSupport) SequenceCalls Uses

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

func (*FakeConsenterSupport) SequenceReturns Uses

func (fake *FakeConsenterSupport) SequenceReturns(result1 uint64)

func (*FakeConsenterSupport) SequenceReturnsOnCall Uses

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

func (*FakeConsenterSupport) SharedConfig Uses

func (fake *FakeConsenterSupport) SharedConfig() channelconfig.Orderer

func (*FakeConsenterSupport) SharedConfigCallCount Uses

func (fake *FakeConsenterSupport) SharedConfigCallCount() int

func (*FakeConsenterSupport) SharedConfigCalls Uses

func (fake *FakeConsenterSupport) SharedConfigCalls(stub func() channelconfig.Orderer)

func (*FakeConsenterSupport) SharedConfigReturns Uses

func (fake *FakeConsenterSupport) SharedConfigReturns(result1 channelconfig.Orderer)

func (*FakeConsenterSupport) SharedConfigReturnsOnCall Uses

func (fake *FakeConsenterSupport) SharedConfigReturnsOnCall(i int, result1 channelconfig.Orderer)

func (*FakeConsenterSupport) Sign Uses

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

func (*FakeConsenterSupport) SignArgsForCall Uses

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

func (*FakeConsenterSupport) SignCallCount Uses

func (fake *FakeConsenterSupport) SignCallCount() int

func (*FakeConsenterSupport) SignCalls Uses

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

func (*FakeConsenterSupport) SignReturns Uses

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

func (*FakeConsenterSupport) SignReturnsOnCall Uses

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

func (*FakeConsenterSupport) VerifyBlockSignature Uses

func (fake *FakeConsenterSupport) VerifyBlockSignature(arg1 []*common.SignedData, arg2 *common.ConfigEnvelope) error

func (*FakeConsenterSupport) VerifyBlockSignatureArgsForCall Uses

func (fake *FakeConsenterSupport) VerifyBlockSignatureArgsForCall(i int) ([]*common.SignedData, *common.ConfigEnvelope)

func (*FakeConsenterSupport) VerifyBlockSignatureCallCount Uses

func (fake *FakeConsenterSupport) VerifyBlockSignatureCallCount() int

func (*FakeConsenterSupport) VerifyBlockSignatureCalls Uses

func (fake *FakeConsenterSupport) VerifyBlockSignatureCalls(stub func([]*common.SignedData, *common.ConfigEnvelope) error)

func (*FakeConsenterSupport) VerifyBlockSignatureReturns Uses

func (fake *FakeConsenterSupport) VerifyBlockSignatureReturns(result1 error)

func (*FakeConsenterSupport) VerifyBlockSignatureReturnsOnCall Uses

func (fake *FakeConsenterSupport) VerifyBlockSignatureReturnsOnCall(i int, result1 error)

func (*FakeConsenterSupport) WriteBlock Uses

func (fake *FakeConsenterSupport) WriteBlock(arg1 *common.Block, arg2 []byte)

func (*FakeConsenterSupport) WriteBlockArgsForCall Uses

func (fake *FakeConsenterSupport) WriteBlockArgsForCall(i int) (*common.Block, []byte)

func (*FakeConsenterSupport) WriteBlockCallCount Uses

func (fake *FakeConsenterSupport) WriteBlockCallCount() int

func (*FakeConsenterSupport) WriteBlockCalls Uses

func (fake *FakeConsenterSupport) WriteBlockCalls(stub func(*common.Block, []byte))

func (*FakeConsenterSupport) WriteConfigBlock Uses

func (fake *FakeConsenterSupport) WriteConfigBlock(arg1 *common.Block, arg2 []byte)

func (*FakeConsenterSupport) WriteConfigBlockArgsForCall Uses

func (fake *FakeConsenterSupport) WriteConfigBlockArgsForCall(i int) (*common.Block, []byte)

func (*FakeConsenterSupport) WriteConfigBlockCallCount Uses

func (fake *FakeConsenterSupport) WriteConfigBlockCallCount() int

func (*FakeConsenterSupport) WriteConfigBlockCalls Uses

func (fake *FakeConsenterSupport) WriteConfigBlockCalls(stub func(*common.Block, []byte))

Package mocks imports 6 packages (graph). Updated 2019-08-10. Refresh now. Tools for package owners.