mocks

package
v1.4.0-rc1.0...-b3f6615 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessController

type AccessController struct {
	mock.Mock
}

AccessController is an autogenerated mock type for the AccessController type

func NewAccessController

func NewAccessController(t mockConstructorTestingTNewAccessController) *AccessController

NewAccessController creates a new instance of AccessController. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AccessController) Evaluate

func (_m *AccessController) Evaluate(signatureSet []*protoutil.SignedData) error

Evaluate provides a mock function with given fields: signatureSet

type BFTBlockDeliverer

type BFTBlockDeliverer struct {
	DeliverBlocksStub func()

	InitializeStub func(*common.Config, string)

	StopStub func()
	// contains filtered or unexported fields
}

func (*BFTBlockDeliverer) DeliverBlocks

func (fake *BFTBlockDeliverer) DeliverBlocks()

func (*BFTBlockDeliverer) DeliverBlocksCallCount

func (fake *BFTBlockDeliverer) DeliverBlocksCallCount() int

func (*BFTBlockDeliverer) DeliverBlocksCalls

func (fake *BFTBlockDeliverer) DeliverBlocksCalls(stub func())

func (*BFTBlockDeliverer) Initialize

func (fake *BFTBlockDeliverer) Initialize(arg1 *common.Config, arg2 string)

func (*BFTBlockDeliverer) InitializeArgsForCall

func (fake *BFTBlockDeliverer) InitializeArgsForCall(i int) (*common.Config, string)

func (*BFTBlockDeliverer) InitializeCallCount

func (fake *BFTBlockDeliverer) InitializeCallCount() int

func (*BFTBlockDeliverer) InitializeCalls

func (fake *BFTBlockDeliverer) InitializeCalls(stub func(*common.Config, string))

func (*BFTBlockDeliverer) Invocations

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

func (*BFTBlockDeliverer) Stop

func (fake *BFTBlockDeliverer) Stop()

func (*BFTBlockDeliverer) StopCallCount

func (fake *BFTBlockDeliverer) StopCallCount() int

func (*BFTBlockDeliverer) StopCalls

func (fake *BFTBlockDeliverer) StopCalls(stub func())

type BFTDelivererFactory

func (*BFTDelivererFactory) CreateBFTDelivererCallCount

func (fake *BFTDelivererFactory) CreateBFTDelivererCallCount() int

func (*BFTDelivererFactory) CreateBFTDelivererReturns

func (fake *BFTDelivererFactory) CreateBFTDelivererReturns(result1 smartbft.BFTBlockDeliverer)

func (*BFTDelivererFactory) CreateBFTDelivererReturnsOnCall

func (fake *BFTDelivererFactory) CreateBFTDelivererReturnsOnCall(i int, result1 smartbft.BFTBlockDeliverer)

func (*BFTDelivererFactory) Invocations

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

type BlockPuller

type BlockPuller struct {
	mock.Mock
}

BlockPuller is an autogenerated mock type for the BlockPuller type

func NewBlockPuller

func NewBlockPuller(t interface {
	mock.TestingT
	Cleanup(func())
}) *BlockPuller

NewBlockPuller creates a new instance of BlockPuller. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*BlockPuller) Close

func (_m *BlockPuller) Close()

Close provides a mock function with given fields:

func (*BlockPuller) EXPECT

func (_m *BlockPuller) EXPECT() *BlockPuller_Expecter

func (*BlockPuller) HeightsByEndpoints

func (_m *BlockPuller) HeightsByEndpoints() (map[string]uint64, string, error)

HeightsByEndpoints provides a mock function with given fields:

func (*BlockPuller) PullBlock

func (_m *BlockPuller) PullBlock(seq uint64) *common.Block

PullBlock provides a mock function with given fields: seq

type BlockPuller_Close_Call

type BlockPuller_Close_Call struct {
	*mock.Call
}

BlockPuller_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'

func (*BlockPuller_Close_Call) Return

func (*BlockPuller_Close_Call) Run

func (_c *BlockPuller_Close_Call) Run(run func()) *BlockPuller_Close_Call

func (*BlockPuller_Close_Call) RunAndReturn

func (_c *BlockPuller_Close_Call) RunAndReturn(run func()) *BlockPuller_Close_Call

type BlockPuller_Expecter

type BlockPuller_Expecter struct {
	// contains filtered or unexported fields
}

func (*BlockPuller_Expecter) Close

Close is a helper method to define mock.On call

func (*BlockPuller_Expecter) HeightsByEndpoints

HeightsByEndpoints is a helper method to define mock.On call

func (*BlockPuller_Expecter) PullBlock

func (_e *BlockPuller_Expecter) PullBlock(seq interface{}) *BlockPuller_PullBlock_Call

PullBlock is a helper method to define mock.On call

  • seq uint64

type BlockPuller_HeightsByEndpoints_Call

type BlockPuller_HeightsByEndpoints_Call struct {
	*mock.Call
}

BlockPuller_HeightsByEndpoints_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HeightsByEndpoints'

func (*BlockPuller_HeightsByEndpoints_Call) Return

func (*BlockPuller_HeightsByEndpoints_Call) Run

func (*BlockPuller_HeightsByEndpoints_Call) RunAndReturn

type BlockPuller_PullBlock_Call

type BlockPuller_PullBlock_Call struct {
	*mock.Call
}

BlockPuller_PullBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PullBlock'

func (*BlockPuller_PullBlock_Call) Return

func (*BlockPuller_PullBlock_Call) Run

func (*BlockPuller_PullBlock_Call) RunAndReturn

type Bundle

type Bundle struct {
	mock.Mock
}

Bundle is an autogenerated mock type for the Bundle type

func NewBundle

func NewBundle(t mockConstructorTestingTNewBundle) *Bundle

NewBundle creates a new instance of Bundle. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Bundle) ApplicationConfig

func (_m *Bundle) ApplicationConfig() (channelconfig.Application, bool)

ApplicationConfig provides a mock function with given fields:

func (*Bundle) ChannelConfig

func (_m *Bundle) ChannelConfig() channelconfig.Channel

ChannelConfig provides a mock function with given fields:

func (*Bundle) ConfigtxValidator

func (_m *Bundle) ConfigtxValidator() configtx.Validator

ConfigtxValidator provides a mock function with given fields:

func (*Bundle) ConsortiumsConfig

func (_m *Bundle) ConsortiumsConfig() (channelconfig.Consortiums, bool)

ConsortiumsConfig provides a mock function with given fields:

func (*Bundle) MSPManager

func (_m *Bundle) MSPManager() msp.MSPManager

MSPManager provides a mock function with given fields:

func (*Bundle) OrdererConfig

func (_m *Bundle) OrdererConfig() (channelconfig.Orderer, bool)

OrdererConfig provides a mock function with given fields:

func (*Bundle) PolicyManager

func (_m *Bundle) PolicyManager() policies.Manager

PolicyManager provides a mock function with given fields:

func (*Bundle) ValidateNew

func (_m *Bundle) ValidateNew(resources channelconfig.Resources) error

ValidateNew provides a mock function with given fields: resources

type Communicator

type Communicator struct {
	mock.Mock
}

Communicator is an autogenerated mock type for the communicator type

func NewCommunicator

func NewCommunicator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Communicator

NewCommunicator creates a new instance of Communicator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Communicator) Configure

func (_m *Communicator) Configure(channel string, members []cluster.RemoteNode)

Configure provides a mock function with given fields: channel, members

func (*Communicator) EXPECT

func (_m *Communicator) EXPECT() *Communicator_Expecter

func (*Communicator) Remote

func (_m *Communicator) Remote(channel string, id uint64) (*cluster.RemoteContext, error)

Remote provides a mock function with given fields: channel, id

func (*Communicator) Shutdown

func (_m *Communicator) Shutdown()

Shutdown provides a mock function with given fields:

type Communicator_Configure_Call

type Communicator_Configure_Call struct {
	*mock.Call
}

Communicator_Configure_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Configure'

func (*Communicator_Configure_Call) Return

func (*Communicator_Configure_Call) Run

func (_c *Communicator_Configure_Call) Run(run func(channel string, members []cluster.RemoteNode)) *Communicator_Configure_Call

func (*Communicator_Configure_Call) RunAndReturn

type Communicator_Expecter

type Communicator_Expecter struct {
	// contains filtered or unexported fields
}

func (*Communicator_Expecter) Configure

func (_e *Communicator_Expecter) Configure(channel interface{}, members interface{}) *Communicator_Configure_Call

Configure is a helper method to define mock.On call

  • channel string
  • members []cluster.RemoteNode

func (*Communicator_Expecter) Remote

func (_e *Communicator_Expecter) Remote(channel interface{}, id interface{}) *Communicator_Remote_Call

Remote is a helper method to define mock.On call

  • channel string
  • id uint64

func (*Communicator_Expecter) Shutdown

Shutdown is a helper method to define mock.On call

type Communicator_Remote_Call

type Communicator_Remote_Call struct {
	*mock.Call
}

Communicator_Remote_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remote'

func (*Communicator_Remote_Call) Return

func (*Communicator_Remote_Call) Run

func (_c *Communicator_Remote_Call) Run(run func(channel string, id uint64)) *Communicator_Remote_Call

func (*Communicator_Remote_Call) RunAndReturn

type Communicator_Shutdown_Call

type Communicator_Shutdown_Call struct {
	*mock.Call
}

Communicator_Shutdown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shutdown'

func (*Communicator_Shutdown_Call) Return

func (*Communicator_Shutdown_Call) Run

func (*Communicator_Shutdown_Call) RunAndReturn

func (_c *Communicator_Shutdown_Call) RunAndReturn(run func()) *Communicator_Shutdown_Call

type ConfigTxValidator

type ConfigTxValidator struct {
	mock.Mock
}

ConfigTxValidator is an autogenerated mock type for the ConfigTxValidator type

func NewConfigTxValidator

func NewConfigTxValidator(t mockConstructorTestingTNewConfigTxValidator) *ConfigTxValidator

NewConfigTxValidator creates a new instance of ConfigTxValidator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ConfigTxValidator) ChannelID

func (_m *ConfigTxValidator) ChannelID() string

ChannelID provides a mock function with given fields:

func (*ConfigTxValidator) ConfigProto

func (_m *ConfigTxValidator) ConfigProto() *common.Config

ConfigProto provides a mock function with given fields:

func (*ConfigTxValidator) ProposeConfigUpdate

func (_m *ConfigTxValidator) ProposeConfigUpdate(configtx *common.Envelope) (*common.ConfigEnvelope, error)

ProposeConfigUpdate provides a mock function with given fields: configtx

func (*ConfigTxValidator) Sequence

func (_m *ConfigTxValidator) Sequence() uint64

Sequence provides a mock function with given fields:

func (*ConfigTxValidator) Validate

func (_m *ConfigTxValidator) Validate(configEnv *common.ConfigEnvelope) error

Validate provides a mock function with given fields: configEnv

type ConfigUpdateProposer

type ConfigUpdateProposer struct {
	mock.Mock
}

ConfigUpdateProposer is an autogenerated mock type for the ConfigUpdateProposer type

func NewConfigUpdateProposer

func NewConfigUpdateProposer(t mockConstructorTestingTNewConfigUpdateProposer) *ConfigUpdateProposer

NewConfigUpdateProposer creates a new instance of ConfigUpdateProposer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ConfigUpdateProposer) ProposeConfigUpdate

func (_m *ConfigUpdateProposer) ProposeConfigUpdate(channel string, configtx *common.Envelope) (*common.ConfigEnvelope, error)

ProposeConfigUpdate provides a mock function with given fields: channel, configtx

type ConfigValidator

type ConfigValidator struct {
	mock.Mock
}

ConfigValidator is an autogenerated mock type for the ConfigValidator type

func NewConfigValidator

func NewConfigValidator(t interface {
	mock.TestingT
	Cleanup(func())
}) *ConfigValidator

NewConfigValidator creates a new instance of ConfigValidator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ConfigValidator) EXPECT

func (*ConfigValidator) ValidateConfig

func (_m *ConfigValidator) ValidateConfig(env *common.Envelope) error

ValidateConfig provides a mock function with given fields: env

type ConfigValidator_Expecter

type ConfigValidator_Expecter struct {
	// contains filtered or unexported fields
}

func (*ConfigValidator_Expecter) ValidateConfig

func (_e *ConfigValidator_Expecter) ValidateConfig(env interface{}) *ConfigValidator_ValidateConfig_Call

ValidateConfig is a helper method to define mock.On call

  • env *common.Envelope

type ConfigValidator_ValidateConfig_Call

type ConfigValidator_ValidateConfig_Call struct {
	*mock.Call
}

ConfigValidator_ValidateConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateConfig'

func (*ConfigValidator_ValidateConfig_Call) Return

func (*ConfigValidator_ValidateConfig_Call) Run

func (*ConfigValidator_ValidateConfig_Call) RunAndReturn

type ConsenterSupport

type ConsenterSupport struct {
	mock.Mock
}

ConsenterSupport is an autogenerated mock type for the consenterSupport type

func NewConsenterSupport

func NewConsenterSupport(t interface {
	mock.TestingT
	Cleanup(func())
}) *ConsenterSupport

NewConsenterSupport creates a new instance of ConsenterSupport. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ConsenterSupport) Append

func (_m *ConsenterSupport) Append(block *common.Block) error

Append provides a mock function with given fields: block

func (*ConsenterSupport) Block

func (_m *ConsenterSupport) Block(number uint64) *common.Block

Block provides a mock function with given fields: number

func (*ConsenterSupport) BlockCutter

func (_m *ConsenterSupport) BlockCutter() blockcutter.Receiver

BlockCutter provides a mock function with given fields:

func (*ConsenterSupport) ChannelConfig

func (_m *ConsenterSupport) ChannelConfig() channelconfig.Channel

ChannelConfig provides a mock function with given fields:

func (*ConsenterSupport) ChannelID

func (_m *ConsenterSupport) ChannelID() string

ChannelID provides a mock function with given fields:

func (*ConsenterSupport) ClassifyMsg

ClassifyMsg provides a mock function with given fields: chdr

func (*ConsenterSupport) CreateNextBlock

func (_m *ConsenterSupport) CreateNextBlock(messages []*common.Envelope) *common.Block

CreateNextBlock provides a mock function with given fields: messages

func (*ConsenterSupport) EXPECT

func (*ConsenterSupport) Height

func (_m *ConsenterSupport) Height() uint64

Height provides a mock function with given fields:

func (*ConsenterSupport) ProcessConfigMsg

func (_m *ConsenterSupport) ProcessConfigMsg(env *common.Envelope) (*common.Envelope, uint64, error)

ProcessConfigMsg provides a mock function with given fields: env

func (*ConsenterSupport) ProcessConfigUpdateMsg

func (_m *ConsenterSupport) ProcessConfigUpdateMsg(env *common.Envelope) (*common.Envelope, uint64, error)

ProcessConfigUpdateMsg provides a mock function with given fields: env

func (*ConsenterSupport) ProcessNormalMsg

func (_m *ConsenterSupport) ProcessNormalMsg(env *common.Envelope) (uint64, error)

ProcessNormalMsg provides a mock function with given fields: env

func (*ConsenterSupport) Sequence

func (_m *ConsenterSupport) Sequence() uint64

Sequence provides a mock function with given fields:

func (*ConsenterSupport) Serialize

func (_m *ConsenterSupport) Serialize() ([]byte, error)

Serialize provides a mock function with given fields:

func (*ConsenterSupport) SharedConfig

func (_m *ConsenterSupport) SharedConfig() channelconfig.Orderer

SharedConfig provides a mock function with given fields:

func (*ConsenterSupport) Sign

func (_m *ConsenterSupport) Sign(message []byte) ([]byte, error)

Sign provides a mock function with given fields: message

func (*ConsenterSupport) SignatureVerifier

func (_m *ConsenterSupport) SignatureVerifier() protoutil.BlockVerifierFunc

SignatureVerifier provides a mock function with given fields:

func (*ConsenterSupport) WriteBlock

func (_m *ConsenterSupport) WriteBlock(block *common.Block, encodedMetadataValue []byte)

WriteBlock provides a mock function with given fields: block, encodedMetadataValue

func (*ConsenterSupport) WriteBlockSync

func (_m *ConsenterSupport) WriteBlockSync(block *common.Block, encodedMetadataValue []byte)

WriteBlockSync provides a mock function with given fields: block, encodedMetadataValue

func (*ConsenterSupport) WriteConfigBlock

func (_m *ConsenterSupport) WriteConfigBlock(block *common.Block, encodedMetadataValue []byte)

WriteConfigBlock provides a mock function with given fields: block, encodedMetadataValue

type ConsenterSupport_Append_Call

type ConsenterSupport_Append_Call struct {
	*mock.Call
}

ConsenterSupport_Append_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Append'

func (*ConsenterSupport_Append_Call) Return

func (*ConsenterSupport_Append_Call) Run

func (*ConsenterSupport_Append_Call) RunAndReturn

type ConsenterSupport_BlockCutter_Call

type ConsenterSupport_BlockCutter_Call struct {
	*mock.Call
}

ConsenterSupport_BlockCutter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockCutter'

func (*ConsenterSupport_BlockCutter_Call) Return

func (*ConsenterSupport_BlockCutter_Call) Run

func (*ConsenterSupport_BlockCutter_Call) RunAndReturn

type ConsenterSupport_Block_Call

type ConsenterSupport_Block_Call struct {
	*mock.Call
}

ConsenterSupport_Block_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Block'

func (*ConsenterSupport_Block_Call) Return

func (*ConsenterSupport_Block_Call) Run

func (*ConsenterSupport_Block_Call) RunAndReturn

type ConsenterSupport_ChannelConfig_Call

type ConsenterSupport_ChannelConfig_Call struct {
	*mock.Call
}

ConsenterSupport_ChannelConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChannelConfig'

func (*ConsenterSupport_ChannelConfig_Call) Return

func (*ConsenterSupport_ChannelConfig_Call) Run

func (*ConsenterSupport_ChannelConfig_Call) RunAndReturn

type ConsenterSupport_ChannelID_Call

type ConsenterSupport_ChannelID_Call struct {
	*mock.Call
}

ConsenterSupport_ChannelID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChannelID'

func (*ConsenterSupport_ChannelID_Call) Return

func (*ConsenterSupport_ChannelID_Call) Run

func (*ConsenterSupport_ChannelID_Call) RunAndReturn

type ConsenterSupport_ClassifyMsg_Call

type ConsenterSupport_ClassifyMsg_Call struct {
	*mock.Call
}

ConsenterSupport_ClassifyMsg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClassifyMsg'

func (*ConsenterSupport_ClassifyMsg_Call) Return

func (*ConsenterSupport_ClassifyMsg_Call) Run

func (*ConsenterSupport_ClassifyMsg_Call) RunAndReturn

type ConsenterSupport_CreateNextBlock_Call

type ConsenterSupport_CreateNextBlock_Call struct {
	*mock.Call
}

ConsenterSupport_CreateNextBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateNextBlock'

func (*ConsenterSupport_CreateNextBlock_Call) Return

func (*ConsenterSupport_CreateNextBlock_Call) Run

func (*ConsenterSupport_CreateNextBlock_Call) RunAndReturn

type ConsenterSupport_Expecter

type ConsenterSupport_Expecter struct {
	// contains filtered or unexported fields
}

func (*ConsenterSupport_Expecter) Append

func (_e *ConsenterSupport_Expecter) Append(block interface{}) *ConsenterSupport_Append_Call

Append is a helper method to define mock.On call

  • block *common.Block

func (*ConsenterSupport_Expecter) Block

func (_e *ConsenterSupport_Expecter) Block(number interface{}) *ConsenterSupport_Block_Call

Block is a helper method to define mock.On call

  • number uint64

func (*ConsenterSupport_Expecter) BlockCutter

BlockCutter is a helper method to define mock.On call

func (*ConsenterSupport_Expecter) ChannelConfig

ChannelConfig is a helper method to define mock.On call

func (*ConsenterSupport_Expecter) ChannelID

ChannelID is a helper method to define mock.On call

func (*ConsenterSupport_Expecter) ClassifyMsg

func (_e *ConsenterSupport_Expecter) ClassifyMsg(chdr interface{}) *ConsenterSupport_ClassifyMsg_Call

ClassifyMsg is a helper method to define mock.On call

  • chdr *common.ChannelHeader

func (*ConsenterSupport_Expecter) CreateNextBlock

func (_e *ConsenterSupport_Expecter) CreateNextBlock(messages interface{}) *ConsenterSupport_CreateNextBlock_Call

CreateNextBlock is a helper method to define mock.On call

  • messages []*common.Envelope

func (*ConsenterSupport_Expecter) Height

Height is a helper method to define mock.On call

func (*ConsenterSupport_Expecter) ProcessConfigMsg

func (_e *ConsenterSupport_Expecter) ProcessConfigMsg(env interface{}) *ConsenterSupport_ProcessConfigMsg_Call

ProcessConfigMsg is a helper method to define mock.On call

  • env *common.Envelope

func (*ConsenterSupport_Expecter) ProcessConfigUpdateMsg

func (_e *ConsenterSupport_Expecter) ProcessConfigUpdateMsg(env interface{}) *ConsenterSupport_ProcessConfigUpdateMsg_Call

ProcessConfigUpdateMsg is a helper method to define mock.On call

  • env *common.Envelope

func (*ConsenterSupport_Expecter) ProcessNormalMsg

func (_e *ConsenterSupport_Expecter) ProcessNormalMsg(env interface{}) *ConsenterSupport_ProcessNormalMsg_Call

ProcessNormalMsg is a helper method to define mock.On call

  • env *common.Envelope

func (*ConsenterSupport_Expecter) Sequence

Sequence is a helper method to define mock.On call

func (*ConsenterSupport_Expecter) Serialize

Serialize is a helper method to define mock.On call

func (*ConsenterSupport_Expecter) SharedConfig

SharedConfig is a helper method to define mock.On call

func (*ConsenterSupport_Expecter) Sign

func (_e *ConsenterSupport_Expecter) Sign(message interface{}) *ConsenterSupport_Sign_Call

Sign is a helper method to define mock.On call

  • message []byte

func (*ConsenterSupport_Expecter) SignatureVerifier

SignatureVerifier is a helper method to define mock.On call

func (*ConsenterSupport_Expecter) WriteBlock

func (_e *ConsenterSupport_Expecter) WriteBlock(block interface{}, encodedMetadataValue interface{}) *ConsenterSupport_WriteBlock_Call

WriteBlock is a helper method to define mock.On call

  • block *common.Block
  • encodedMetadataValue []byte

func (*ConsenterSupport_Expecter) WriteBlockSync

func (_e *ConsenterSupport_Expecter) WriteBlockSync(block interface{}, encodedMetadataValue interface{}) *ConsenterSupport_WriteBlockSync_Call

WriteBlockSync is a helper method to define mock.On call

  • block *common.Block
  • encodedMetadataValue []byte

func (*ConsenterSupport_Expecter) WriteConfigBlock

func (_e *ConsenterSupport_Expecter) WriteConfigBlock(block interface{}, encodedMetadataValue interface{}) *ConsenterSupport_WriteConfigBlock_Call

WriteConfigBlock is a helper method to define mock.On call

  • block *common.Block
  • encodedMetadataValue []byte

type ConsenterSupport_Height_Call

type ConsenterSupport_Height_Call struct {
	*mock.Call
}

ConsenterSupport_Height_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Height'

func (*ConsenterSupport_Height_Call) Return

func (*ConsenterSupport_Height_Call) Run

func (*ConsenterSupport_Height_Call) RunAndReturn

type ConsenterSupport_ProcessConfigMsg_Call

type ConsenterSupport_ProcessConfigMsg_Call struct {
	*mock.Call
}

ConsenterSupport_ProcessConfigMsg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessConfigMsg'

func (*ConsenterSupport_ProcessConfigMsg_Call) Return

func (*ConsenterSupport_ProcessConfigMsg_Call) Run

func (*ConsenterSupport_ProcessConfigMsg_Call) RunAndReturn

type ConsenterSupport_ProcessConfigUpdateMsg_Call

type ConsenterSupport_ProcessConfigUpdateMsg_Call struct {
	*mock.Call
}

ConsenterSupport_ProcessConfigUpdateMsg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessConfigUpdateMsg'

func (*ConsenterSupport_ProcessConfigUpdateMsg_Call) Return

func (*ConsenterSupport_ProcessConfigUpdateMsg_Call) Run

func (*ConsenterSupport_ProcessConfigUpdateMsg_Call) RunAndReturn

type ConsenterSupport_ProcessNormalMsg_Call

type ConsenterSupport_ProcessNormalMsg_Call struct {
	*mock.Call
}

ConsenterSupport_ProcessNormalMsg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessNormalMsg'

func (*ConsenterSupport_ProcessNormalMsg_Call) Return

func (*ConsenterSupport_ProcessNormalMsg_Call) Run

func (*ConsenterSupport_ProcessNormalMsg_Call) RunAndReturn

type ConsenterSupport_Sequence_Call

type ConsenterSupport_Sequence_Call struct {
	*mock.Call
}

ConsenterSupport_Sequence_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sequence'

func (*ConsenterSupport_Sequence_Call) Return

func (*ConsenterSupport_Sequence_Call) Run

func (*ConsenterSupport_Sequence_Call) RunAndReturn

type ConsenterSupport_Serialize_Call

type ConsenterSupport_Serialize_Call struct {
	*mock.Call
}

ConsenterSupport_Serialize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Serialize'

func (*ConsenterSupport_Serialize_Call) Return

func (*ConsenterSupport_Serialize_Call) Run

func (*ConsenterSupport_Serialize_Call) RunAndReturn

type ConsenterSupport_SharedConfig_Call

type ConsenterSupport_SharedConfig_Call struct {
	*mock.Call
}

ConsenterSupport_SharedConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SharedConfig'

func (*ConsenterSupport_SharedConfig_Call) Return

func (*ConsenterSupport_SharedConfig_Call) Run

func (*ConsenterSupport_SharedConfig_Call) RunAndReturn

type ConsenterSupport_Sign_Call

type ConsenterSupport_Sign_Call struct {
	*mock.Call
}

ConsenterSupport_Sign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sign'

func (*ConsenterSupport_Sign_Call) Return

func (*ConsenterSupport_Sign_Call) Run

func (_c *ConsenterSupport_Sign_Call) Run(run func(message []byte)) *ConsenterSupport_Sign_Call

func (*ConsenterSupport_Sign_Call) RunAndReturn

func (_c *ConsenterSupport_Sign_Call) RunAndReturn(run func([]byte) ([]byte, error)) *ConsenterSupport_Sign_Call

type ConsenterSupport_SignatureVerifier_Call

type ConsenterSupport_SignatureVerifier_Call struct {
	*mock.Call
}

ConsenterSupport_SignatureVerifier_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignatureVerifier'

func (*ConsenterSupport_SignatureVerifier_Call) Return

func (*ConsenterSupport_SignatureVerifier_Call) Run

func (*ConsenterSupport_SignatureVerifier_Call) RunAndReturn

type ConsenterSupport_WriteBlockSync_Call

type ConsenterSupport_WriteBlockSync_Call struct {
	*mock.Call
}

ConsenterSupport_WriteBlockSync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteBlockSync'

func (*ConsenterSupport_WriteBlockSync_Call) Return

func (*ConsenterSupport_WriteBlockSync_Call) Run

func (_c *ConsenterSupport_WriteBlockSync_Call) Run(run func(block *common.Block, encodedMetadataValue []byte)) *ConsenterSupport_WriteBlockSync_Call

func (*ConsenterSupport_WriteBlockSync_Call) RunAndReturn

type ConsenterSupport_WriteBlock_Call

type ConsenterSupport_WriteBlock_Call struct {
	*mock.Call
}

ConsenterSupport_WriteBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteBlock'

func (*ConsenterSupport_WriteBlock_Call) Return

func (*ConsenterSupport_WriteBlock_Call) Run

func (_c *ConsenterSupport_WriteBlock_Call) Run(run func(block *common.Block, encodedMetadataValue []byte)) *ConsenterSupport_WriteBlock_Call

func (*ConsenterSupport_WriteBlock_Call) RunAndReturn

type ConsenterSupport_WriteConfigBlock_Call

type ConsenterSupport_WriteConfigBlock_Call struct {
	*mock.Call
}

ConsenterSupport_WriteConfigBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteConfigBlock'

func (*ConsenterSupport_WriteConfigBlock_Call) Return

func (*ConsenterSupport_WriteConfigBlock_Call) Run

func (_c *ConsenterSupport_WriteConfigBlock_Call) Run(run func(block *common.Block, encodedMetadataValue []byte)) *ConsenterSupport_WriteConfigBlock_Call

func (*ConsenterSupport_WriteConfigBlock_Call) RunAndReturn

type ConsenterVerifier

type ConsenterVerifier struct {
	mock.Mock
}

ConsenterVerifier is an autogenerated mock type for the ConsenterVerifier type

func NewConsenterVerifier

func NewConsenterVerifier(t mockConstructorTestingTNewConsenterVerifier) *ConsenterVerifier

NewConsenterVerifier creates a new instance of ConsenterVerifier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ConsenterVerifier) Evaluate

func (_m *ConsenterVerifier) Evaluate(signatureSet []*protoutil.SignedData) error

Evaluate provides a mock function with given fields: signatureSet

type EgressComm

type EgressComm struct {
	mock.Mock
}

EgressComm is an autogenerated mock type for the EgressComm type

func NewEgressComm

func NewEgressComm(t interface {
	mock.TestingT
	Cleanup(func())
}) *EgressComm

NewEgressComm creates a new instance of EgressComm. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EgressComm) EXPECT

func (_m *EgressComm) EXPECT() *EgressComm_Expecter

func (*EgressComm) Nodes

func (_m *EgressComm) Nodes() []uint64

Nodes provides a mock function with given fields:

func (*EgressComm) SendConsensus

func (_m *EgressComm) SendConsensus(targetID uint64, m *smartbftprotos.Message)

SendConsensus provides a mock function with given fields: targetID, m

func (*EgressComm) SendTransaction

func (_m *EgressComm) SendTransaction(targetID uint64, request []byte)

SendTransaction provides a mock function with given fields: targetID, request

type EgressComm_Expecter

type EgressComm_Expecter struct {
	// contains filtered or unexported fields
}

func (*EgressComm_Expecter) Nodes

Nodes is a helper method to define mock.On call

func (*EgressComm_Expecter) SendConsensus

func (_e *EgressComm_Expecter) SendConsensus(targetID interface{}, m interface{}) *EgressComm_SendConsensus_Call

SendConsensus is a helper method to define mock.On call

  • targetID uint64
  • m *smartbftprotos.Message

func (*EgressComm_Expecter) SendTransaction

func (_e *EgressComm_Expecter) SendTransaction(targetID interface{}, request interface{}) *EgressComm_SendTransaction_Call

SendTransaction is a helper method to define mock.On call

  • targetID uint64
  • request []byte

type EgressComm_Nodes_Call

type EgressComm_Nodes_Call struct {
	*mock.Call
}

EgressComm_Nodes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Nodes'

func (*EgressComm_Nodes_Call) Return

func (*EgressComm_Nodes_Call) Run

func (_c *EgressComm_Nodes_Call) Run(run func()) *EgressComm_Nodes_Call

func (*EgressComm_Nodes_Call) RunAndReturn

func (_c *EgressComm_Nodes_Call) RunAndReturn(run func() []uint64) *EgressComm_Nodes_Call

type EgressComm_SendConsensus_Call

type EgressComm_SendConsensus_Call struct {
	*mock.Call
}

EgressComm_SendConsensus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendConsensus'

func (*EgressComm_SendConsensus_Call) Return

func (*EgressComm_SendConsensus_Call) Run

func (*EgressComm_SendConsensus_Call) RunAndReturn

type EgressComm_SendTransaction_Call

type EgressComm_SendTransaction_Call struct {
	*mock.Call
}

EgressComm_SendTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendTransaction'

func (*EgressComm_SendTransaction_Call) Return

func (*EgressComm_SendTransaction_Call) Run

func (_c *EgressComm_SendTransaction_Call) Run(run func(targetID uint64, request []byte)) *EgressComm_SendTransaction_Call

func (*EgressComm_SendTransaction_Call) RunAndReturn

type FakeBlockPuller

type FakeBlockPuller struct {
	CloseStub func()

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

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

func (*FakeBlockPuller) Close

func (fake *FakeBlockPuller) Close()

func (*FakeBlockPuller) CloseCallCount

func (fake *FakeBlockPuller) CloseCallCount() int

func (*FakeBlockPuller) CloseCalls

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

func (*FakeBlockPuller) HeightsByEndpoints

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

func (*FakeBlockPuller) HeightsByEndpointsCallCount

func (fake *FakeBlockPuller) HeightsByEndpointsCallCount() int

func (*FakeBlockPuller) HeightsByEndpointsCalls

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

func (*FakeBlockPuller) HeightsByEndpointsReturns

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

func (*FakeBlockPuller) HeightsByEndpointsReturnsOnCall

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

func (*FakeBlockPuller) Invocations

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

func (*FakeBlockPuller) PullBlock

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

func (*FakeBlockPuller) PullBlockArgsForCall

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

func (*FakeBlockPuller) PullBlockCallCount

func (fake *FakeBlockPuller) PullBlockCallCount() int

func (*FakeBlockPuller) PullBlockCalls

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

func (*FakeBlockPuller) PullBlockReturns

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

func (*FakeBlockPuller) PullBlockReturnsOnCall

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

type FakeBlockPullerFactory

type FakeBlockPullerFactory struct {
	CreateBlockPullerStub func(consensus.ConsenterSupport, *cluster.PredicateDialer, localconfig.Cluster, bccsp.BCCSP) (smartbft.BlockPuller, error)
	// contains filtered or unexported fields
}

func (*FakeBlockPullerFactory) CreateBlockPuller

func (*FakeBlockPullerFactory) CreateBlockPullerArgsForCall

func (*FakeBlockPullerFactory) CreateBlockPullerCallCount

func (fake *FakeBlockPullerFactory) CreateBlockPullerCallCount() int

func (*FakeBlockPullerFactory) CreateBlockPullerCalls

func (*FakeBlockPullerFactory) CreateBlockPullerReturns

func (fake *FakeBlockPullerFactory) CreateBlockPullerReturns(result1 smartbft.BlockPuller, result2 error)

func (*FakeBlockPullerFactory) CreateBlockPullerReturnsOnCall

func (fake *FakeBlockPullerFactory) CreateBlockPullerReturnsOnCall(i int, result1 smartbft.BlockPuller, result2 error)

func (*FakeBlockPullerFactory) Invocations

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

type Filters

type Filters struct {
	mock.Mock
}

Filters is an autogenerated mock type for the Filters type

func NewFilters

func NewFilters(t mockConstructorTestingTNewFilters) *Filters

NewFilters creates a new instance of Filters. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Filters) ApplyFilters

func (_m *Filters) ApplyFilters(channel string, env *common.Envelope) error

ApplyFilters provides a mock function with given fields: channel, env

type Ledger

type Ledger struct {
	mock.Mock
}

Ledger is an autogenerated mock type for the Ledger type

func NewLedger

func NewLedger(t mockConstructorTestingTNewLedger) *Ledger

NewLedger creates a new instance of Ledger. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Ledger) Block

func (_m *Ledger) Block(number uint64) *common.Block

Block provides a mock function with given fields: number

func (*Ledger) Height

func (_m *Ledger) Height() uint64

Height provides a mock function with given fields:

type MessageReceiver

type MessageReceiver struct {
	mock.Mock
}

MessageReceiver is an autogenerated mock type for the MessageReceiver type

func NewMessageReceiver

func NewMessageReceiver(t mockConstructorTestingTNewMessageReceiver) *MessageReceiver

NewMessageReceiver creates a new instance of MessageReceiver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MessageReceiver) HandleMessage

func (_m *MessageReceiver) HandleMessage(sender uint64, m *smartbftprotos.Message)

HandleMessage provides a mock function with given fields: sender, m

func (*MessageReceiver) HandleRequest

func (_m *MessageReceiver) HandleRequest(sender uint64, req []byte)

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

type OrdererConfig

type OrdererConfig struct {
	BatchSizeStub func() *orderer.BatchSize

	BatchTimeoutStub func() time.Duration

	CapabilitiesStub func() channelconfig.OrdererCapabilities

	ConsensusMetadataStub func() []byte

	ConsensusStateStub func() orderer.ConsensusType_State

	ConsensusTypeStub func() string

	ConsentersStub func() []*common.Consenter

	MaxChannelsCountStub func() uint64

	OrganizationsStub func() map[string]channelconfig.OrdererOrg
	// contains filtered or unexported fields
}

func (*OrdererConfig) BatchSize

func (fake *OrdererConfig) BatchSize() *orderer.BatchSize

func (*OrdererConfig) BatchSizeCallCount

func (fake *OrdererConfig) BatchSizeCallCount() int

func (*OrdererConfig) BatchSizeCalls

func (fake *OrdererConfig) BatchSizeCalls(stub func() *orderer.BatchSize)

func (*OrdererConfig) BatchSizeReturns

func (fake *OrdererConfig) BatchSizeReturns(result1 *orderer.BatchSize)

func (*OrdererConfig) BatchSizeReturnsOnCall

func (fake *OrdererConfig) BatchSizeReturnsOnCall(i int, result1 *orderer.BatchSize)

func (*OrdererConfig) BatchTimeout

func (fake *OrdererConfig) BatchTimeout() time.Duration

func (*OrdererConfig) BatchTimeoutCallCount

func (fake *OrdererConfig) BatchTimeoutCallCount() int

func (*OrdererConfig) BatchTimeoutCalls

func (fake *OrdererConfig) BatchTimeoutCalls(stub func() time.Duration)

func (*OrdererConfig) BatchTimeoutReturns

func (fake *OrdererConfig) BatchTimeoutReturns(result1 time.Duration)

func (*OrdererConfig) BatchTimeoutReturnsOnCall

func (fake *OrdererConfig) BatchTimeoutReturnsOnCall(i int, result1 time.Duration)

func (*OrdererConfig) Capabilities

func (fake *OrdererConfig) Capabilities() channelconfig.OrdererCapabilities

func (*OrdererConfig) CapabilitiesCallCount

func (fake *OrdererConfig) CapabilitiesCallCount() int

func (*OrdererConfig) CapabilitiesCalls

func (fake *OrdererConfig) CapabilitiesCalls(stub func() channelconfig.OrdererCapabilities)

func (*OrdererConfig) CapabilitiesReturns

func (fake *OrdererConfig) CapabilitiesReturns(result1 channelconfig.OrdererCapabilities)

func (*OrdererConfig) CapabilitiesReturnsOnCall

func (fake *OrdererConfig) CapabilitiesReturnsOnCall(i int, result1 channelconfig.OrdererCapabilities)

func (*OrdererConfig) ConsensusMetadata

func (fake *OrdererConfig) ConsensusMetadata() []byte

func (*OrdererConfig) ConsensusMetadataCallCount

func (fake *OrdererConfig) ConsensusMetadataCallCount() int

func (*OrdererConfig) ConsensusMetadataCalls

func (fake *OrdererConfig) ConsensusMetadataCalls(stub func() []byte)

func (*OrdererConfig) ConsensusMetadataReturns

func (fake *OrdererConfig) ConsensusMetadataReturns(result1 []byte)

func (*OrdererConfig) ConsensusMetadataReturnsOnCall

func (fake *OrdererConfig) ConsensusMetadataReturnsOnCall(i int, result1 []byte)

func (*OrdererConfig) ConsensusState

func (fake *OrdererConfig) ConsensusState() orderer.ConsensusType_State

func (*OrdererConfig) ConsensusStateCallCount

func (fake *OrdererConfig) ConsensusStateCallCount() int

func (*OrdererConfig) ConsensusStateCalls

func (fake *OrdererConfig) ConsensusStateCalls(stub func() orderer.ConsensusType_State)

func (*OrdererConfig) ConsensusStateReturns

func (fake *OrdererConfig) ConsensusStateReturns(result1 orderer.ConsensusType_State)

func (*OrdererConfig) ConsensusStateReturnsOnCall

func (fake *OrdererConfig) ConsensusStateReturnsOnCall(i int, result1 orderer.ConsensusType_State)

func (*OrdererConfig) ConsensusType

func (fake *OrdererConfig) ConsensusType() string

func (*OrdererConfig) ConsensusTypeCallCount

func (fake *OrdererConfig) ConsensusTypeCallCount() int

func (*OrdererConfig) ConsensusTypeCalls

func (fake *OrdererConfig) ConsensusTypeCalls(stub func() string)

func (*OrdererConfig) ConsensusTypeReturns

func (fake *OrdererConfig) ConsensusTypeReturns(result1 string)

func (*OrdererConfig) ConsensusTypeReturnsOnCall

func (fake *OrdererConfig) ConsensusTypeReturnsOnCall(i int, result1 string)

func (*OrdererConfig) Consenters

func (fake *OrdererConfig) Consenters() []*common.Consenter

func (*OrdererConfig) ConsentersCallCount

func (fake *OrdererConfig) ConsentersCallCount() int

func (*OrdererConfig) ConsentersCalls

func (fake *OrdererConfig) ConsentersCalls(stub func() []*common.Consenter)

func (*OrdererConfig) ConsentersReturns

func (fake *OrdererConfig) ConsentersReturns(result1 []*common.Consenter)

func (*OrdererConfig) ConsentersReturnsOnCall

func (fake *OrdererConfig) ConsentersReturnsOnCall(i int, result1 []*common.Consenter)

func (*OrdererConfig) Invocations

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

func (*OrdererConfig) MaxChannelsCount

func (fake *OrdererConfig) MaxChannelsCount() uint64

func (*OrdererConfig) MaxChannelsCountCallCount

func (fake *OrdererConfig) MaxChannelsCountCallCount() int

func (*OrdererConfig) MaxChannelsCountCalls

func (fake *OrdererConfig) MaxChannelsCountCalls(stub func() uint64)

func (*OrdererConfig) MaxChannelsCountReturns

func (fake *OrdererConfig) MaxChannelsCountReturns(result1 uint64)

func (*OrdererConfig) MaxChannelsCountReturnsOnCall

func (fake *OrdererConfig) MaxChannelsCountReturnsOnCall(i int, result1 uint64)

func (*OrdererConfig) Organizations

func (fake *OrdererConfig) Organizations() map[string]channelconfig.OrdererOrg

func (*OrdererConfig) OrganizationsCallCount

func (fake *OrdererConfig) OrganizationsCallCount() int

func (*OrdererConfig) OrganizationsCalls

func (fake *OrdererConfig) OrganizationsCalls(stub func() map[string]channelconfig.OrdererOrg)

func (*OrdererConfig) OrganizationsReturns

func (fake *OrdererConfig) OrganizationsReturns(result1 map[string]channelconfig.OrdererOrg)

func (*OrdererConfig) OrganizationsReturnsOnCall

func (fake *OrdererConfig) OrganizationsReturnsOnCall(i int, result1 map[string]channelconfig.OrdererOrg)

type Policy

type Policy struct {
	mock.Mock
}

Policy is an autogenerated mock type for the policy type

func NewPolicy

func NewPolicy(t interface {
	mock.TestingT
	Cleanup(func())
}) *Policy

NewPolicy creates a new instance of Policy. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Policy) EXPECT

func (_m *Policy) EXPECT() *Policy_Expecter

func (*Policy) EvaluateIdentities

func (_m *Policy) EvaluateIdentities(identities []msp.Identity) error

EvaluateIdentities provides a mock function with given fields: identities

func (*Policy) EvaluateSignedData

func (_m *Policy) EvaluateSignedData(signatureSet []*protoutil.SignedData) error

EvaluateSignedData provides a mock function with given fields: signatureSet

type PolicyManager

type PolicyManager struct {
	mock.Mock
}

PolicyManager is an autogenerated mock type for the policyManager type

func NewPolicyManager

func NewPolicyManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *PolicyManager

NewPolicyManager creates a new instance of PolicyManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*PolicyManager) EXPECT

func (_m *PolicyManager) EXPECT() *PolicyManager_Expecter

func (*PolicyManager) GetPolicy

func (_m *PolicyManager) GetPolicy(id string) (policies.Policy, bool)

GetPolicy provides a mock function with given fields: id

func (*PolicyManager) Manager

func (_m *PolicyManager) Manager(path []string) (policies.Manager, bool)

Manager provides a mock function with given fields: path

type PolicyManager_Expecter

type PolicyManager_Expecter struct {
	// contains filtered or unexported fields
}

func (*PolicyManager_Expecter) GetPolicy

func (_e *PolicyManager_Expecter) GetPolicy(id interface{}) *PolicyManager_GetPolicy_Call

GetPolicy is a helper method to define mock.On call

  • id string

func (*PolicyManager_Expecter) Manager

func (_e *PolicyManager_Expecter) Manager(path interface{}) *PolicyManager_Manager_Call

Manager is a helper method to define mock.On call

  • path []string

type PolicyManager_GetPolicy_Call

type PolicyManager_GetPolicy_Call struct {
	*mock.Call
}

PolicyManager_GetPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPolicy'

func (*PolicyManager_GetPolicy_Call) Return

func (*PolicyManager_GetPolicy_Call) Run

func (*PolicyManager_GetPolicy_Call) RunAndReturn

type PolicyManager_Manager_Call

type PolicyManager_Manager_Call struct {
	*mock.Call
}

PolicyManager_Manager_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Manager'

func (*PolicyManager_Manager_Call) Return

func (*PolicyManager_Manager_Call) Run

func (*PolicyManager_Manager_Call) RunAndReturn

type Policy_EvaluateIdentities_Call

type Policy_EvaluateIdentities_Call struct {
	*mock.Call
}

Policy_EvaluateIdentities_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EvaluateIdentities'

func (*Policy_EvaluateIdentities_Call) Return

func (*Policy_EvaluateIdentities_Call) Run

func (*Policy_EvaluateIdentities_Call) RunAndReturn

type Policy_EvaluateSignedData_Call

type Policy_EvaluateSignedData_Call struct {
	*mock.Call
}

Policy_EvaluateSignedData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EvaluateSignedData'

func (*Policy_EvaluateSignedData_Call) Return

func (*Policy_EvaluateSignedData_Call) Run

func (*Policy_EvaluateSignedData_Call) RunAndReturn

type Policy_Expecter

type Policy_Expecter struct {
	// contains filtered or unexported fields
}

func (*Policy_Expecter) EvaluateIdentities

func (_e *Policy_Expecter) EvaluateIdentities(identities interface{}) *Policy_EvaluateIdentities_Call

EvaluateIdentities is a helper method to define mock.On call

  • identities []msp.Identity

func (*Policy_Expecter) EvaluateSignedData

func (_e *Policy_Expecter) EvaluateSignedData(signatureSet interface{}) *Policy_EvaluateSignedData_Call

EvaluateSignedData is a helper method to define mock.On call

  • signatureSet []*protoutil.SignedData

type RPC

type RPC struct {
	mock.Mock
}

RPC is an autogenerated mock type for the RPC type

func NewRPC

func NewRPC(t mockConstructorTestingTNewRPC) *RPC

NewRPC creates a new instance of RPC. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RPC) SendConsensus

func (_m *RPC) SendConsensus(dest uint64, msg *orderer.ConsensusRequest) error

SendConsensus provides a mock function with given fields: dest, msg

func (*RPC) SendSubmit

func (_m *RPC) SendSubmit(destination uint64, request *orderer.SubmitRequest, report func(error)) error

SendSubmit provides a mock function with given fields: destination, request, report

type ReceiverGetter

type ReceiverGetter struct {
	mock.Mock
}

ReceiverGetter is an autogenerated mock type for the ReceiverGetter type

func NewReceiverGetter

func NewReceiverGetter(t mockConstructorTestingTNewReceiverGetter) *ReceiverGetter

NewReceiverGetter creates a new instance of ReceiverGetter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ReceiverGetter) ReceiverByChain

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

ReceiverByChain provides a mock function with given fields: channelID

type Sequencer

type Sequencer struct {
	mock.Mock
}

Sequencer is an autogenerated mock type for the Sequencer type

func NewSequencer

func NewSequencer(t mockConstructorTestingTNewSequencer) *Sequencer

NewSequencer creates a new instance of Sequencer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Sequencer) Sequence

func (_m *Sequencer) Sequence() uint64

Sequence provides a mock function with given fields:

type SignerSerializer

type SignerSerializer struct {
	mock.Mock
}

SignerSerializer is an autogenerated mock type for the SignerSerializer type

func NewSignerSerializer

func NewSignerSerializer(t interface {
	mock.TestingT
	Cleanup(func())
}) *SignerSerializer

NewSignerSerializer creates a new instance of SignerSerializer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*SignerSerializer) EXPECT

func (*SignerSerializer) Serialize

func (_m *SignerSerializer) Serialize() ([]byte, error)

Serialize provides a mock function with given fields:

func (*SignerSerializer) Sign

func (_m *SignerSerializer) Sign(message []byte) ([]byte, error)

Sign provides a mock function with given fields: message

type SignerSerializer_Expecter

type SignerSerializer_Expecter struct {
	// contains filtered or unexported fields
}

func (*SignerSerializer_Expecter) Serialize

Serialize is a helper method to define mock.On call

func (*SignerSerializer_Expecter) Sign

func (_e *SignerSerializer_Expecter) Sign(message interface{}) *SignerSerializer_Sign_Call

Sign is a helper method to define mock.On call

  • message []byte

type SignerSerializer_Serialize_Call

type SignerSerializer_Serialize_Call struct {
	*mock.Call
}

SignerSerializer_Serialize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Serialize'

func (*SignerSerializer_Serialize_Call) Return

func (*SignerSerializer_Serialize_Call) Run

func (*SignerSerializer_Serialize_Call) RunAndReturn

type SignerSerializer_Sign_Call

type SignerSerializer_Sign_Call struct {
	*mock.Call
}

SignerSerializer_Sign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sign'

func (*SignerSerializer_Sign_Call) Return

func (*SignerSerializer_Sign_Call) Run

func (_c *SignerSerializer_Sign_Call) Run(run func(message []byte)) *SignerSerializer_Sign_Call

func (*SignerSerializer_Sign_Call) RunAndReturn

func (_c *SignerSerializer_Sign_Call) RunAndReturn(run func([]byte) ([]byte, error)) *SignerSerializer_Sign_Call

type Synchronizer

type Synchronizer struct {
	mock.Mock
}

Synchronizer is an autogenerated mock type for the synchronizer type

func NewSynchronizer

func NewSynchronizer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Synchronizer

NewSynchronizer creates a new instance of Synchronizer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Synchronizer) EXPECT

func (_m *Synchronizer) EXPECT() *Synchronizer_Expecter

func (*Synchronizer) Sync

func (_m *Synchronizer) Sync() types.SyncResponse

Sync provides a mock function with given fields:

type SynchronizerFactory

type SynchronizerFactory struct {
	mock.Mock
}

SynchronizerFactory is an autogenerated mock type for the SynchronizerFactory type

func NewSynchronizerFactory

func NewSynchronizerFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *SynchronizerFactory

NewSynchronizerFactory creates a new instance of SynchronizerFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*SynchronizerFactory) CreateSynchronizer

func (_m *SynchronizerFactory) CreateSynchronizer(logger *flogging.FabricLogger, localConfigCluster localconfig.Cluster, rtc smartbft.RuntimeConfig, blockToDecision func(*common.Block) *types.Decision, pruneCommittedRequests func(*common.Block), updateRuntimeConfig func(*common.Block) types.Reconfig, support consensus.ConsenterSupport, _a7 bccsp.BCCSP, clusterDialer *cluster.PredicateDialer) api.Synchronizer

CreateSynchronizer provides a mock function with given fields: logger, localConfigCluster, rtc, blockToDecision, pruneCommittedRequests, updateRuntimeConfig, support, _a7, clusterDialer

func (*SynchronizerFactory) EXPECT

type SynchronizerFactory_CreateSynchronizer_Call

type SynchronizerFactory_CreateSynchronizer_Call struct {
	*mock.Call
}

SynchronizerFactory_CreateSynchronizer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSynchronizer'

func (*SynchronizerFactory_CreateSynchronizer_Call) Return

func (*SynchronizerFactory_CreateSynchronizer_Call) Run

func (_c *SynchronizerFactory_CreateSynchronizer_Call) Run(run func(logger *flogging.FabricLogger, localConfigCluster localconfig.Cluster, rtc smartbft.RuntimeConfig, blockToDecision func(*common.Block) *types.Decision, pruneCommittedRequests func(*common.Block), updateRuntimeConfig func(*common.Block) types.Reconfig, support consensus.ConsenterSupport, _a7 bccsp.BCCSP, clusterDialer *cluster.PredicateDialer)) *SynchronizerFactory_CreateSynchronizer_Call

type SynchronizerFactory_Expecter

type SynchronizerFactory_Expecter struct {
	// contains filtered or unexported fields
}

func (*SynchronizerFactory_Expecter) CreateSynchronizer

func (_e *SynchronizerFactory_Expecter) CreateSynchronizer(logger interface{}, localConfigCluster interface{}, rtc interface{}, blockToDecision interface{}, pruneCommittedRequests interface{}, updateRuntimeConfig interface{}, support interface{}, _a7 interface{}, clusterDialer interface{}) *SynchronizerFactory_CreateSynchronizer_Call

CreateSynchronizer is a helper method to define mock.On call

  • logger *flogging.FabricLogger
  • localConfigCluster localconfig.Cluster
  • rtc smartbft.RuntimeConfig
  • blockToDecision func(*common.Block) *types.Decision
  • pruneCommittedRequests func(*common.Block)
  • updateRuntimeConfig func(*common.Block) types.Reconfig
  • support consensus.ConsenterSupport
  • _a7 bccsp.BCCSP
  • clusterDialer *cluster.PredicateDialer

type Synchronizer_Expecter

type Synchronizer_Expecter struct {
	// contains filtered or unexported fields
}

func (*Synchronizer_Expecter) Sync

Sync is a helper method to define mock.On call

type Synchronizer_Sync_Call

type Synchronizer_Sync_Call struct {
	*mock.Call
}

Synchronizer_Sync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sync'

func (*Synchronizer_Sync_Call) Return

func (*Synchronizer_Sync_Call) Run

func (_c *Synchronizer_Sync_Call) Run(run func()) *Synchronizer_Sync_Call

func (*Synchronizer_Sync_Call) RunAndReturn

func (_c *Synchronizer_Sync_Call) RunAndReturn(run func() types.SyncResponse) *Synchronizer_Sync_Call

type UpdatableBlockVerifier

type UpdatableBlockVerifier struct {
	CloneStub func() deliverclient.CloneableUpdatableBlockVerifier

	UpdateBlockHeaderStub func(*common.Block)

	UpdateConfigStub func(*common.Block) error

	VerifyBlockStub func(*common.Block) error

	VerifyBlockAttestationStub func(*common.Block) error
	// contains filtered or unexported fields
}

func (*UpdatableBlockVerifier) Clone

func (*UpdatableBlockVerifier) CloneCallCount

func (fake *UpdatableBlockVerifier) CloneCallCount() int

func (*UpdatableBlockVerifier) CloneCalls

func (*UpdatableBlockVerifier) CloneReturns

func (*UpdatableBlockVerifier) CloneReturnsOnCall

func (fake *UpdatableBlockVerifier) CloneReturnsOnCall(i int, result1 deliverclient.CloneableUpdatableBlockVerifier)

func (*UpdatableBlockVerifier) Invocations

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

func (*UpdatableBlockVerifier) UpdateBlockHeader

func (fake *UpdatableBlockVerifier) UpdateBlockHeader(arg1 *common.Block)

func (*UpdatableBlockVerifier) UpdateBlockHeaderArgsForCall

func (fake *UpdatableBlockVerifier) UpdateBlockHeaderArgsForCall(i int) *common.Block

func (*UpdatableBlockVerifier) UpdateBlockHeaderCallCount

func (fake *UpdatableBlockVerifier) UpdateBlockHeaderCallCount() int

func (*UpdatableBlockVerifier) UpdateBlockHeaderCalls

func (fake *UpdatableBlockVerifier) UpdateBlockHeaderCalls(stub func(*common.Block))

func (*UpdatableBlockVerifier) UpdateConfig

func (fake *UpdatableBlockVerifier) UpdateConfig(arg1 *common.Block) error

func (*UpdatableBlockVerifier) UpdateConfigArgsForCall

func (fake *UpdatableBlockVerifier) UpdateConfigArgsForCall(i int) *common.Block

func (*UpdatableBlockVerifier) UpdateConfigCallCount

func (fake *UpdatableBlockVerifier) UpdateConfigCallCount() int

func (*UpdatableBlockVerifier) UpdateConfigCalls

func (fake *UpdatableBlockVerifier) UpdateConfigCalls(stub func(*common.Block) error)

func (*UpdatableBlockVerifier) UpdateConfigReturns

func (fake *UpdatableBlockVerifier) UpdateConfigReturns(result1 error)

func (*UpdatableBlockVerifier) UpdateConfigReturnsOnCall

func (fake *UpdatableBlockVerifier) UpdateConfigReturnsOnCall(i int, result1 error)

func (*UpdatableBlockVerifier) VerifyBlock

func (fake *UpdatableBlockVerifier) VerifyBlock(arg1 *common.Block) error

func (*UpdatableBlockVerifier) VerifyBlockArgsForCall

func (fake *UpdatableBlockVerifier) VerifyBlockArgsForCall(i int) *common.Block

func (*UpdatableBlockVerifier) VerifyBlockAttestation

func (fake *UpdatableBlockVerifier) VerifyBlockAttestation(arg1 *common.Block) error

func (*UpdatableBlockVerifier) VerifyBlockAttestationArgsForCall

func (fake *UpdatableBlockVerifier) VerifyBlockAttestationArgsForCall(i int) *common.Block

func (*UpdatableBlockVerifier) VerifyBlockAttestationCallCount

func (fake *UpdatableBlockVerifier) VerifyBlockAttestationCallCount() int

func (*UpdatableBlockVerifier) VerifyBlockAttestationCalls

func (fake *UpdatableBlockVerifier) VerifyBlockAttestationCalls(stub func(*common.Block) error)

func (*UpdatableBlockVerifier) VerifyBlockAttestationReturns

func (fake *UpdatableBlockVerifier) VerifyBlockAttestationReturns(result1 error)

func (*UpdatableBlockVerifier) VerifyBlockAttestationReturnsOnCall

func (fake *UpdatableBlockVerifier) VerifyBlockAttestationReturnsOnCall(i int, result1 error)

func (*UpdatableBlockVerifier) VerifyBlockCallCount

func (fake *UpdatableBlockVerifier) VerifyBlockCallCount() int

func (*UpdatableBlockVerifier) VerifyBlockCalls

func (fake *UpdatableBlockVerifier) VerifyBlockCalls(stub func(*common.Block) error)

func (*UpdatableBlockVerifier) VerifyBlockReturns

func (fake *UpdatableBlockVerifier) VerifyBlockReturns(result1 error)

func (*UpdatableBlockVerifier) VerifyBlockReturnsOnCall

func (fake *UpdatableBlockVerifier) VerifyBlockReturnsOnCall(i int, result1 error)

type VerifierFactory

type VerifierFactory struct {
	CreateBlockVerifierStub func(*common.Block, *common.Block, bccsp.BCCSP, *flogging.FabricLogger) (deliverclient.CloneableUpdatableBlockVerifier, error)
	// contains filtered or unexported fields
}

func (*VerifierFactory) CreateBlockVerifier

func (*VerifierFactory) CreateBlockVerifierArgsForCall

func (fake *VerifierFactory) CreateBlockVerifierArgsForCall(i int) (*common.Block, *common.Block, bccsp.BCCSP, *flogging.FabricLogger)

func (*VerifierFactory) CreateBlockVerifierCallCount

func (fake *VerifierFactory) CreateBlockVerifierCallCount() int

func (*VerifierFactory) CreateBlockVerifierCalls

func (*VerifierFactory) CreateBlockVerifierReturns

func (fake *VerifierFactory) CreateBlockVerifierReturns(result1 deliverclient.CloneableUpdatableBlockVerifier, result2 error)

func (*VerifierFactory) CreateBlockVerifierReturnsOnCall

func (fake *VerifierFactory) CreateBlockVerifierReturnsOnCall(i int, result1 deliverclient.CloneableUpdatableBlockVerifier, result2 error)

func (*VerifierFactory) Invocations

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

Jump to

Keyboard shortcuts

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