Package mocks
import "github.com/hyperledger/fabric/orderer/consensus/mocks"
- Overview
- Index
Code generated by counterfeiter. DO NOT EDIT.
- type FakeConsenterSupport
- func (fake *FakeConsenterSupport) Append(arg1 *common.Block) error
- func (fake *FakeConsenterSupport) AppendArgsForCall(i int) *common.Block
- func (fake *FakeConsenterSupport) AppendCallCount() int
- func (fake *FakeConsenterSupport) AppendCalls(stub func(*common.Block) error)
- func (fake *FakeConsenterSupport) AppendReturns(result1 error)
- func (fake *FakeConsenterSupport) AppendReturnsOnCall(i int, result1 error)
- func (fake *FakeConsenterSupport) Block(arg1 uint64) *common.Block
- func (fake *FakeConsenterSupport) BlockArgsForCall(i int) uint64
- func (fake *FakeConsenterSupport) BlockCallCount() int
- func (fake *FakeConsenterSupport) BlockCalls(stub func(uint64) *common.Block)
- func (fake *FakeConsenterSupport) BlockCutter() blockcutter.Receiver
- func (fake *FakeConsenterSupport) BlockCutterCallCount() int
- func (fake *FakeConsenterSupport) BlockCutterCalls(stub func() blockcutter.Receiver)
- func (fake *FakeConsenterSupport) BlockCutterReturns(result1 blockcutter.Receiver)
- func (fake *FakeConsenterSupport) BlockCutterReturnsOnCall(i int, result1 blockcutter.Receiver)
- func (fake *FakeConsenterSupport) BlockReturns(result1 *common.Block)
- func (fake *FakeConsenterSupport) BlockReturnsOnCall(i int, result1 *common.Block)
- func (fake *FakeConsenterSupport) ChainID() string
- func (fake *FakeConsenterSupport) ChainIDCallCount() int
- func (fake *FakeConsenterSupport) ChainIDCalls(stub func() string)
- func (fake *FakeConsenterSupport) ChainIDReturns(result1 string)
- func (fake *FakeConsenterSupport) ChainIDReturnsOnCall(i int, result1 string)
- func (fake *FakeConsenterSupport) ChannelConfig() channelconfig.Channel
- func (fake *FakeConsenterSupport) ChannelConfigCallCount() int
- func (fake *FakeConsenterSupport) ChannelConfigCalls(stub func() channelconfig.Channel)
- func (fake *FakeConsenterSupport) ChannelConfigReturns(result1 channelconfig.Channel)
- func (fake *FakeConsenterSupport) ChannelConfigReturnsOnCall(i int, result1 channelconfig.Channel)
- func (fake *FakeConsenterSupport) ClassifyMsg(arg1 *common.ChannelHeader) msgprocessor.Classification
- func (fake *FakeConsenterSupport) ClassifyMsgArgsForCall(i int) *common.ChannelHeader
- func (fake *FakeConsenterSupport) ClassifyMsgCallCount() int
- func (fake *FakeConsenterSupport) ClassifyMsgCalls(stub func(*common.ChannelHeader) msgprocessor.Classification)
- func (fake *FakeConsenterSupport) ClassifyMsgReturns(result1 msgprocessor.Classification)
- func (fake *FakeConsenterSupport) ClassifyMsgReturnsOnCall(i int, result1 msgprocessor.Classification)
- func (fake *FakeConsenterSupport) CreateNextBlock(arg1 []*common.Envelope) *common.Block
- func (fake *FakeConsenterSupport) CreateNextBlockArgsForCall(i int) []*common.Envelope
- func (fake *FakeConsenterSupport) CreateNextBlockCallCount() int
- func (fake *FakeConsenterSupport) CreateNextBlockCalls(stub func([]*common.Envelope) *common.Block)
- func (fake *FakeConsenterSupport) CreateNextBlockReturns(result1 *common.Block)
- func (fake *FakeConsenterSupport) CreateNextBlockReturnsOnCall(i int, result1 *common.Block)
- func (fake *FakeConsenterSupport) Height() uint64
- func (fake *FakeConsenterSupport) HeightCallCount() int
- func (fake *FakeConsenterSupport) HeightCalls(stub func() uint64)
- func (fake *FakeConsenterSupport) HeightReturns(result1 uint64)
- func (fake *FakeConsenterSupport) HeightReturnsOnCall(i int, result1 uint64)
- func (fake *FakeConsenterSupport) Invocations() map[string][][]interface{}
- func (fake *FakeConsenterSupport) NewSignatureHeader() (*common.SignatureHeader, error)
- func (fake *FakeConsenterSupport) NewSignatureHeaderCallCount() int
- func (fake *FakeConsenterSupport) NewSignatureHeaderCalls(stub func() (*common.SignatureHeader, error))
- func (fake *FakeConsenterSupport) NewSignatureHeaderReturns(result1 *common.SignatureHeader, result2 error)
- func (fake *FakeConsenterSupport) NewSignatureHeaderReturnsOnCall(i int, result1 *common.SignatureHeader, result2 error)
- func (fake *FakeConsenterSupport) ProcessConfigMsg(arg1 *common.Envelope) (*common.Envelope, uint64, error)
- func (fake *FakeConsenterSupport) ProcessConfigMsgArgsForCall(i int) *common.Envelope
- func (fake *FakeConsenterSupport) ProcessConfigMsgCallCount() int
- func (fake *FakeConsenterSupport) ProcessConfigMsgCalls(stub func(*common.Envelope) (*common.Envelope, uint64, error))
- func (fake *FakeConsenterSupport) ProcessConfigMsgReturns(result1 *common.Envelope, result2 uint64, result3 error)
- func (fake *FakeConsenterSupport) ProcessConfigMsgReturnsOnCall(i int, result1 *common.Envelope, result2 uint64, result3 error)
- func (fake *FakeConsenterSupport) ProcessConfigUpdateMsg(arg1 *common.Envelope) (*common.Envelope, uint64, error)
- func (fake *FakeConsenterSupport) ProcessConfigUpdateMsgArgsForCall(i int) *common.Envelope
- func (fake *FakeConsenterSupport) ProcessConfigUpdateMsgCallCount() int
- func (fake *FakeConsenterSupport) ProcessConfigUpdateMsgCalls(stub func(*common.Envelope) (*common.Envelope, uint64, error))
- func (fake *FakeConsenterSupport) ProcessConfigUpdateMsgReturns(result1 *common.Envelope, result2 uint64, result3 error)
- func (fake *FakeConsenterSupport) ProcessConfigUpdateMsgReturnsOnCall(i int, result1 *common.Envelope, result2 uint64, result3 error)
- func (fake *FakeConsenterSupport) ProcessNormalMsg(arg1 *common.Envelope) (uint64, error)
- func (fake *FakeConsenterSupport) ProcessNormalMsgArgsForCall(i int) *common.Envelope
- func (fake *FakeConsenterSupport) ProcessNormalMsgCallCount() int
- func (fake *FakeConsenterSupport) ProcessNormalMsgCalls(stub func(*common.Envelope) (uint64, error))
- func (fake *FakeConsenterSupport) ProcessNormalMsgReturns(result1 uint64, result2 error)
- func (fake *FakeConsenterSupport) ProcessNormalMsgReturnsOnCall(i int, result1 uint64, result2 error)
- func (fake *FakeConsenterSupport) Sequence() uint64
- func (fake *FakeConsenterSupport) SequenceCallCount() int
- func (fake *FakeConsenterSupport) SequenceCalls(stub func() uint64)
- func (fake *FakeConsenterSupport) SequenceReturns(result1 uint64)
- func (fake *FakeConsenterSupport) SequenceReturnsOnCall(i int, result1 uint64)
- func (fake *FakeConsenterSupport) SharedConfig() channelconfig.Orderer
- func (fake *FakeConsenterSupport) SharedConfigCallCount() int
- func (fake *FakeConsenterSupport) SharedConfigCalls(stub func() channelconfig.Orderer)
- func (fake *FakeConsenterSupport) SharedConfigReturns(result1 channelconfig.Orderer)
- func (fake *FakeConsenterSupport) SharedConfigReturnsOnCall(i int, result1 channelconfig.Orderer)
- func (fake *FakeConsenterSupport) Sign(arg1 []byte) ([]byte, error)
- func (fake *FakeConsenterSupport) SignArgsForCall(i int) []byte
- func (fake *FakeConsenterSupport) SignCallCount() int
- func (fake *FakeConsenterSupport) SignCalls(stub func([]byte) ([]byte, error))
- func (fake *FakeConsenterSupport) SignReturns(result1 []byte, result2 error)
- func (fake *FakeConsenterSupport) SignReturnsOnCall(i int, result1 []byte, result2 error)
- func (fake *FakeConsenterSupport) VerifyBlockSignature(arg1 []*common.SignedData, arg2 *common.ConfigEnvelope) error
- func (fake *FakeConsenterSupport) VerifyBlockSignatureArgsForCall(i int) ([]*common.SignedData, *common.ConfigEnvelope)
- func (fake *FakeConsenterSupport) VerifyBlockSignatureCallCount() int
- func (fake *FakeConsenterSupport) VerifyBlockSignatureCalls(stub func([]*common.SignedData, *common.ConfigEnvelope) error)
- func (fake *FakeConsenterSupport) VerifyBlockSignatureReturns(result1 error)
- func (fake *FakeConsenterSupport) VerifyBlockSignatureReturnsOnCall(i int, result1 error)
- func (fake *FakeConsenterSupport) WriteBlock(arg1 *common.Block, arg2 []byte)
- func (fake *FakeConsenterSupport) WriteBlockArgsForCall(i int) (*common.Block, []byte)
- func (fake *FakeConsenterSupport) WriteBlockCallCount() int
- func (fake *FakeConsenterSupport) WriteBlockCalls(stub func(*common.Block, []byte))
- func (fake *FakeConsenterSupport) WriteConfigBlock(arg1 *common.Block, arg2 []byte)
- func (fake *FakeConsenterSupport) WriteConfigBlockArgsForCall(i int) (*common.Block, []byte)
- func (fake *FakeConsenterSupport) WriteConfigBlockCallCount() int
- func (fake *FakeConsenterSupport) WriteConfigBlockCalls(stub func(*common.Block, []byte))
Package files
mock_consenter_support.go
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)
}
func (*FakeConsenterSupport) Append
¶
func (fake *FakeConsenterSupport) Append(arg1 *common.Block) error
func (fake *FakeConsenterSupport) AppendArgsForCall(i int) *common.Block
func (fake *FakeConsenterSupport) AppendCallCount() int
func (*FakeConsenterSupport) AppendCalls
¶
func (fake *FakeConsenterSupport) AppendCalls(stub func(*common.Block) error)
func (*FakeConsenterSupport) AppendReturns
¶
func (fake *FakeConsenterSupport) AppendReturns(result1 error)
func (fake *FakeConsenterSupport) AppendReturnsOnCall(i int, result1 error)
func (*FakeConsenterSupport) Block
¶
func (fake *FakeConsenterSupport) Block(arg1 uint64) *common.Block
func (fake *FakeConsenterSupport) BlockArgsForCall(i int) uint64
func (fake *FakeConsenterSupport) BlockCallCount() int
func (*FakeConsenterSupport) BlockCalls
¶
func (fake *FakeConsenterSupport) BlockCalls(stub func(uint64) *common.Block)
func (*FakeConsenterSupport) BlockCutter
¶
func (fake *FakeConsenterSupport) BlockCutter() blockcutter.Receiver
func (fake *FakeConsenterSupport) BlockCutterCallCount() int
func (fake *FakeConsenterSupport) BlockCutterCalls(stub func() blockcutter.Receiver)
func (fake *FakeConsenterSupport) BlockCutterReturns(result1 blockcutter.Receiver)
func (fake *FakeConsenterSupport) BlockCutterReturnsOnCall(i int, result1 blockcutter.Receiver)
func (*FakeConsenterSupport) BlockReturns
¶
func (fake *FakeConsenterSupport) BlockReturns(result1 *common.Block)
func (fake *FakeConsenterSupport) BlockReturnsOnCall(i int, result1 *common.Block)
func (*FakeConsenterSupport) ChainID
¶
func (fake *FakeConsenterSupport) ChainID() string
func (fake *FakeConsenterSupport) ChainIDCallCount() int
func (*FakeConsenterSupport) ChainIDCalls
¶
func (fake *FakeConsenterSupport) ChainIDCalls(stub func() string)
func (fake *FakeConsenterSupport) ChainIDReturns(result1 string)
func (fake *FakeConsenterSupport) ChainIDReturnsOnCall(i int, result1 string)
func (*FakeConsenterSupport) ChannelConfig
¶
func (fake *FakeConsenterSupport) ChannelConfig() channelconfig.Channel
func (fake *FakeConsenterSupport) ChannelConfigCallCount() int
func (fake *FakeConsenterSupport) ChannelConfigCalls(stub func() channelconfig.Channel)
func (fake *FakeConsenterSupport) ChannelConfigReturns(result1 channelconfig.Channel)
func (fake *FakeConsenterSupport) ChannelConfigReturnsOnCall(i int, result1 channelconfig.Channel)
func (*FakeConsenterSupport) ClassifyMsg
¶
func (fake *FakeConsenterSupport) ClassifyMsg(arg1 *common.ChannelHeader) msgprocessor.Classification
func (fake *FakeConsenterSupport) ClassifyMsgArgsForCall(i int) *common.ChannelHeader
func (fake *FakeConsenterSupport) ClassifyMsgCallCount() int
func (fake *FakeConsenterSupport) ClassifyMsgCalls(stub func(*common.ChannelHeader) msgprocessor.Classification)
func (fake *FakeConsenterSupport) ClassifyMsgReturns(result1 msgprocessor.Classification)
func (fake *FakeConsenterSupport) ClassifyMsgReturnsOnCall(i int, result1 msgprocessor.Classification)
func (fake *FakeConsenterSupport) CreateNextBlock(arg1 []*common.Envelope) *common.Block
func (fake *FakeConsenterSupport) CreateNextBlockArgsForCall(i int) []*common.Envelope
func (fake *FakeConsenterSupport) CreateNextBlockCallCount() int
func (fake *FakeConsenterSupport) CreateNextBlockCalls(stub func([]*common.Envelope) *common.Block)
func (fake *FakeConsenterSupport) CreateNextBlockReturns(result1 *common.Block)
func (fake *FakeConsenterSupport) CreateNextBlockReturnsOnCall(i int, result1 *common.Block)
func (*FakeConsenterSupport) Height
¶
func (fake *FakeConsenterSupport) Height() uint64
func (fake *FakeConsenterSupport) HeightCallCount() int
func (*FakeConsenterSupport) HeightCalls
¶
func (fake *FakeConsenterSupport) HeightCalls(stub func() uint64)
func (*FakeConsenterSupport) HeightReturns
¶
func (fake *FakeConsenterSupport) HeightReturns(result1 uint64)
func (fake *FakeConsenterSupport) HeightReturnsOnCall(i int, result1 uint64)
func (*FakeConsenterSupport) Invocations
¶
func (fake *FakeConsenterSupport) Invocations() map[string][][]interface{}
func (fake *FakeConsenterSupport) NewSignatureHeader() (*common.SignatureHeader, error)
func (fake *FakeConsenterSupport) NewSignatureHeaderCallCount() int
func (fake *FakeConsenterSupport) NewSignatureHeaderCalls(stub func() (*common.SignatureHeader, error))
func (fake *FakeConsenterSupport) NewSignatureHeaderReturns(result1 *common.SignatureHeader, result2 error)
func (fake *FakeConsenterSupport) NewSignatureHeaderReturnsOnCall(i int, result1 *common.SignatureHeader, result2 error)
func (fake *FakeConsenterSupport) ProcessConfigMsg(arg1 *common.Envelope) (*common.Envelope, uint64, error)
func (fake *FakeConsenterSupport) ProcessConfigMsgArgsForCall(i int) *common.Envelope
func (fake *FakeConsenterSupport) ProcessConfigMsgCallCount() int
func (fake *FakeConsenterSupport) ProcessConfigMsgCalls(stub func(*common.Envelope) (*common.Envelope, uint64, error))
func (fake *FakeConsenterSupport) ProcessConfigMsgReturns(result1 *common.Envelope, result2 uint64, result3 error)
func (fake *FakeConsenterSupport) ProcessConfigMsgReturnsOnCall(i int, result1 *common.Envelope, result2 uint64, result3 error)
func (fake *FakeConsenterSupport) ProcessConfigUpdateMsg(arg1 *common.Envelope) (*common.Envelope, uint64, error)
func (fake *FakeConsenterSupport) ProcessConfigUpdateMsgArgsForCall(i int) *common.Envelope
func (fake *FakeConsenterSupport) ProcessConfigUpdateMsgCallCount() int
func (fake *FakeConsenterSupport) ProcessConfigUpdateMsgCalls(stub func(*common.Envelope) (*common.Envelope, uint64, error))
func (fake *FakeConsenterSupport) ProcessConfigUpdateMsgReturns(result1 *common.Envelope, result2 uint64, result3 error)
func (fake *FakeConsenterSupport) ProcessConfigUpdateMsgReturnsOnCall(i int, result1 *common.Envelope, result2 uint64, result3 error)
func (fake *FakeConsenterSupport) ProcessNormalMsg(arg1 *common.Envelope) (uint64, error)
func (fake *FakeConsenterSupport) ProcessNormalMsgArgsForCall(i int) *common.Envelope
func (fake *FakeConsenterSupport) ProcessNormalMsgCallCount() int
func (fake *FakeConsenterSupport) ProcessNormalMsgCalls(stub func(*common.Envelope) (uint64, error))
func (fake *FakeConsenterSupport) ProcessNormalMsgReturns(result1 uint64, result2 error)
func (fake *FakeConsenterSupport) ProcessNormalMsgReturnsOnCall(i int, result1 uint64, result2 error)
func (*FakeConsenterSupport) Sequence
¶
func (fake *FakeConsenterSupport) Sequence() uint64
func (fake *FakeConsenterSupport) SequenceCallCount() int
func (*FakeConsenterSupport) SequenceCalls
¶
func (fake *FakeConsenterSupport) SequenceCalls(stub func() uint64)
func (fake *FakeConsenterSupport) SequenceReturns(result1 uint64)
func (fake *FakeConsenterSupport) SequenceReturnsOnCall(i int, result1 uint64)
func (*FakeConsenterSupport) SharedConfig
¶
func (fake *FakeConsenterSupport) SharedConfig() channelconfig.Orderer
func (fake *FakeConsenterSupport) SharedConfigCallCount() int
func (fake *FakeConsenterSupport) SharedConfigCalls(stub func() channelconfig.Orderer)
func (fake *FakeConsenterSupport) SharedConfigReturns(result1 channelconfig.Orderer)
func (fake *FakeConsenterSupport) SharedConfigReturnsOnCall(i int, result1 channelconfig.Orderer)
func (*FakeConsenterSupport) Sign
¶
func (fake *FakeConsenterSupport) Sign(arg1 []byte) ([]byte, error)
func (fake *FakeConsenterSupport) SignArgsForCall(i int) []byte
func (*FakeConsenterSupport) SignCallCount
¶
func (fake *FakeConsenterSupport) SignCallCount() int
func (*FakeConsenterSupport) SignCalls
¶
func (fake *FakeConsenterSupport) SignCalls(stub func([]byte) ([]byte, error))
func (*FakeConsenterSupport) SignReturns
¶
func (fake *FakeConsenterSupport) SignReturns(result1 []byte, result2 error)
func (fake *FakeConsenterSupport) SignReturnsOnCall(i int, result1 []byte, result2 error)
func (fake *FakeConsenterSupport) VerifyBlockSignature(arg1 []*common.SignedData, arg2 *common.ConfigEnvelope) error
func (fake *FakeConsenterSupport) VerifyBlockSignatureArgsForCall(i int) ([]*common.SignedData, *common.ConfigEnvelope)
func (fake *FakeConsenterSupport) VerifyBlockSignatureCallCount() int
func (fake *FakeConsenterSupport) VerifyBlockSignatureCalls(stub func([]*common.SignedData, *common.ConfigEnvelope) error)
func (fake *FakeConsenterSupport) VerifyBlockSignatureReturns(result1 error)
func (fake *FakeConsenterSupport) VerifyBlockSignatureReturnsOnCall(i int, result1 error)
func (*FakeConsenterSupport) WriteBlock
¶
func (fake *FakeConsenterSupport) WriteBlock(arg1 *common.Block, arg2 []byte)
func (fake *FakeConsenterSupport) WriteBlockArgsForCall(i int) (*common.Block, []byte)
func (fake *FakeConsenterSupport) WriteBlockCallCount() int
func (fake *FakeConsenterSupport) WriteBlockCalls(stub func(*common.Block, []byte))
func (fake *FakeConsenterSupport) WriteConfigBlock(arg1 *common.Block, arg2 []byte)
func (fake *FakeConsenterSupport) WriteConfigBlockArgsForCall(i int) (*common.Block, []byte)
func (fake *FakeConsenterSupport) WriteConfigBlockCallCount() int
func (fake *FakeConsenterSupport) WriteConfigBlockCalls(stub func(*common.Block, []byte))