mocks

package
v0.0.0-...-523a819 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 伪造者生成的代码。不要编辑。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeConsenterSupport

type FakeConsenterSupport struct {
	NewSignatureHeaderStub func() (*cb.SignatureHeader, error)

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

	ClassifyMsgStub func(chdr *cb.ChannelHeader) msgprocessor.Classification

	ProcessNormalMsgStub func(env *cb.Envelope) (configSeq uint64, err error)

	ProcessConfigUpdateMsgStub func(env *cb.Envelope) (config *cb.Envelope, configSeq uint64, err error)

	ProcessConfigMsgStub func(env *cb.Envelope) (*cb.Envelope, uint64, error)

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

	BlockCutterStub func() blockcutter.Receiver

	SharedConfigStub func() channelconfig.Orderer

	CreateNextBlockStub func(messages []*cb.Envelope) *cb.Block

	BlockStub func(number uint64) *cb.Block

	WriteBlockStub func(block *cb.Block, encodedMetadataValue []byte)

	WriteConfigBlockStub func(block *cb.Block, encodedMetadataValue []byte)

	SequenceStub func() uint64

	ChainIDStub func() string

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

func (*FakeConsenterSupport) Block

func (fake *FakeConsenterSupport) Block(number uint64) *cb.Block

func (*FakeConsenterSupport) BlockArgsForCall

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

func (*FakeConsenterSupport) BlockCallCount

func (fake *FakeConsenterSupport) BlockCallCount() int

func (*FakeConsenterSupport) BlockCutter

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

func (*FakeConsenterSupport) BlockCutterCallCount

func (fake *FakeConsenterSupport) BlockCutterCallCount() int

func (*FakeConsenterSupport) BlockCutterReturns

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

func (*FakeConsenterSupport) BlockCutterReturnsOnCall

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

func (*FakeConsenterSupport) BlockReturns

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

func (*FakeConsenterSupport) BlockReturnsOnCall

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

func (*FakeConsenterSupport) ChainID

func (fake *FakeConsenterSupport) ChainID() string

func (*FakeConsenterSupport) ChainIDCallCount

func (fake *FakeConsenterSupport) ChainIDCallCount() int

func (*FakeConsenterSupport) ChainIDReturns

func (fake *FakeConsenterSupport) ChainIDReturns(result1 string)

func (*FakeConsenterSupport) ChainIDReturnsOnCall

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

func (*FakeConsenterSupport) ClassifyMsg

func (*FakeConsenterSupport) ClassifyMsgArgsForCall

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

func (*FakeConsenterSupport) ClassifyMsgCallCount

func (fake *FakeConsenterSupport) ClassifyMsgCallCount() int

func (*FakeConsenterSupport) ClassifyMsgReturns

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

func (*FakeConsenterSupport) ClassifyMsgReturnsOnCall

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

func (*FakeConsenterSupport) CreateNextBlock

func (fake *FakeConsenterSupport) CreateNextBlock(messages []*cb.Envelope) *cb.Block

func (*FakeConsenterSupport) CreateNextBlockArgsForCall

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

func (*FakeConsenterSupport) CreateNextBlockCallCount

func (fake *FakeConsenterSupport) CreateNextBlockCallCount() int

func (*FakeConsenterSupport) CreateNextBlockReturns

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

func (*FakeConsenterSupport) CreateNextBlockReturnsOnCall

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

func (*FakeConsenterSupport) Height

func (fake *FakeConsenterSupport) Height() uint64

func (*FakeConsenterSupport) HeightCallCount

func (fake *FakeConsenterSupport) HeightCallCount() int

func (*FakeConsenterSupport) HeightReturns

func (fake *FakeConsenterSupport) HeightReturns(result1 uint64)

func (*FakeConsenterSupport) HeightReturnsOnCall

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

func (*FakeConsenterSupport) Invocations

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

func (*FakeConsenterSupport) NewSignatureHeader

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

func (*FakeConsenterSupport) NewSignatureHeaderCallCount

func (fake *FakeConsenterSupport) NewSignatureHeaderCallCount() int

func (*FakeConsenterSupport) NewSignatureHeaderReturns

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

func (*FakeConsenterSupport) NewSignatureHeaderReturnsOnCall

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

func (*FakeConsenterSupport) ProcessConfigMsg

func (fake *FakeConsenterSupport) ProcessConfigMsg(env *cb.Envelope) (*cb.Envelope, uint64, error)

func (*FakeConsenterSupport) ProcessConfigMsgArgsForCall

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

func (*FakeConsenterSupport) ProcessConfigMsgCallCount

func (fake *FakeConsenterSupport) ProcessConfigMsgCallCount() int

func (*FakeConsenterSupport) ProcessConfigMsgReturns

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

func (*FakeConsenterSupport) ProcessConfigMsgReturnsOnCall

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

func (*FakeConsenterSupport) ProcessConfigUpdateMsg

func (fake *FakeConsenterSupport) ProcessConfigUpdateMsg(env *cb.Envelope) (config *cb.Envelope, configSeq uint64, err error)

func (*FakeConsenterSupport) ProcessConfigUpdateMsgArgsForCall

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

func (*FakeConsenterSupport) ProcessConfigUpdateMsgCallCount

func (fake *FakeConsenterSupport) ProcessConfigUpdateMsgCallCount() int

func (*FakeConsenterSupport) ProcessConfigUpdateMsgReturns

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

func (*FakeConsenterSupport) ProcessConfigUpdateMsgReturnsOnCall

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

func (*FakeConsenterSupport) ProcessNormalMsg

func (fake *FakeConsenterSupport) ProcessNormalMsg(env *cb.Envelope) (configSeq uint64, err error)

func (*FakeConsenterSupport) ProcessNormalMsgArgsForCall

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

func (*FakeConsenterSupport) ProcessNormalMsgCallCount

func (fake *FakeConsenterSupport) ProcessNormalMsgCallCount() int

func (*FakeConsenterSupport) ProcessNormalMsgReturns

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

func (*FakeConsenterSupport) ProcessNormalMsgReturnsOnCall

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

func (*FakeConsenterSupport) Sequence

func (fake *FakeConsenterSupport) Sequence() uint64

func (*FakeConsenterSupport) SequenceCallCount

func (fake *FakeConsenterSupport) SequenceCallCount() int

func (*FakeConsenterSupport) SequenceReturns

func (fake *FakeConsenterSupport) SequenceReturns(result1 uint64)

func (*FakeConsenterSupport) SequenceReturnsOnCall

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

func (*FakeConsenterSupport) SharedConfig

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

func (*FakeConsenterSupport) SharedConfigCallCount

func (fake *FakeConsenterSupport) SharedConfigCallCount() int

func (*FakeConsenterSupport) SharedConfigReturns

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

func (*FakeConsenterSupport) SharedConfigReturnsOnCall

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

func (*FakeConsenterSupport) Sign

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

func (*FakeConsenterSupport) SignArgsForCall

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

func (*FakeConsenterSupport) SignCallCount

func (fake *FakeConsenterSupport) SignCallCount() int

func (*FakeConsenterSupport) SignReturns

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

func (*FakeConsenterSupport) SignReturnsOnCall

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

func (*FakeConsenterSupport) VerifyBlockSignature

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

func (*FakeConsenterSupport) VerifyBlockSignatureArgsForCall

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

func (*FakeConsenterSupport) VerifyBlockSignatureCallCount

func (fake *FakeConsenterSupport) VerifyBlockSignatureCallCount() int

func (*FakeConsenterSupport) VerifyBlockSignatureReturns

func (fake *FakeConsenterSupport) VerifyBlockSignatureReturns(result1 error)

func (*FakeConsenterSupport) VerifyBlockSignatureReturnsOnCall

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

func (*FakeConsenterSupport) WriteBlock

func (fake *FakeConsenterSupport) WriteBlock(block *cb.Block, encodedMetadataValue []byte)

func (*FakeConsenterSupport) WriteBlockArgsForCall

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

func (*FakeConsenterSupport) WriteBlockCallCount

func (fake *FakeConsenterSupport) WriteBlockCallCount() int

func (*FakeConsenterSupport) WriteConfigBlock

func (fake *FakeConsenterSupport) WriteConfigBlock(block *cb.Block, encodedMetadataValue []byte)

func (*FakeConsenterSupport) WriteConfigBlockArgsForCall

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

func (*FakeConsenterSupport) WriteConfigBlockCallCount

func (fake *FakeConsenterSupport) WriteConfigBlockCallCount() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL