mocks

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: Apache-2.0 Imports: 6 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.

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 BlockPullerFactory

type BlockPullerFactory struct {
	BlockPullerStub func(*common.Block, chan struct{}) (follower.ChannelPuller, error)

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

func (*BlockPullerFactory) BlockPuller

func (fake *BlockPullerFactory) BlockPuller(arg1 *common.Block, arg2 chan struct{}) (follower.ChannelPuller, error)

func (*BlockPullerFactory) BlockPullerArgsForCall

func (fake *BlockPullerFactory) BlockPullerArgsForCall(i int) (*common.Block, chan struct{})

func (*BlockPullerFactory) BlockPullerCallCount

func (fake *BlockPullerFactory) BlockPullerCallCount() int

func (*BlockPullerFactory) BlockPullerCalls

func (fake *BlockPullerFactory) BlockPullerCalls(stub func(*common.Block, chan struct{}) (follower.ChannelPuller, error))

func (*BlockPullerFactory) BlockPullerReturns

func (fake *BlockPullerFactory) BlockPullerReturns(result1 follower.ChannelPuller, result2 error)

func (*BlockPullerFactory) BlockPullerReturnsOnCall

func (fake *BlockPullerFactory) BlockPullerReturnsOnCall(i int, result1 follower.ChannelPuller, result2 error)

func (*BlockPullerFactory) Invocations

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

func (*BlockPullerFactory) UpdateVerifierFromConfigBlock

func (fake *BlockPullerFactory) UpdateVerifierFromConfigBlock(arg1 *common.Block) error

func (*BlockPullerFactory) UpdateVerifierFromConfigBlockArgsForCall

func (fake *BlockPullerFactory) UpdateVerifierFromConfigBlockArgsForCall(i int) *common.Block

func (*BlockPullerFactory) UpdateVerifierFromConfigBlockCallCount

func (fake *BlockPullerFactory) UpdateVerifierFromConfigBlockCallCount() int

func (*BlockPullerFactory) UpdateVerifierFromConfigBlockCalls

func (fake *BlockPullerFactory) UpdateVerifierFromConfigBlockCalls(stub func(*common.Block) error)

func (*BlockPullerFactory) UpdateVerifierFromConfigBlockReturns

func (fake *BlockPullerFactory) UpdateVerifierFromConfigBlockReturns(result1 error)

func (*BlockPullerFactory) UpdateVerifierFromConfigBlockReturnsOnCall

func (fake *BlockPullerFactory) UpdateVerifierFromConfigBlockReturnsOnCall(i int, result1 error)

type ChainCreator

type ChainCreator struct {
	SwitchFollowerToChainStub func(string)
	// contains filtered or unexported fields
}

func (*ChainCreator) Invocations

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

func (*ChainCreator) SwitchFollowerToChain

func (fake *ChainCreator) SwitchFollowerToChain(arg1 string)

func (*ChainCreator) SwitchFollowerToChainArgsForCall

func (fake *ChainCreator) SwitchFollowerToChainArgsForCall(i int) string

func (*ChainCreator) SwitchFollowerToChainCallCount

func (fake *ChainCreator) SwitchFollowerToChainCallCount() int

func (*ChainCreator) SwitchFollowerToChainCalls

func (fake *ChainCreator) SwitchFollowerToChainCalls(stub func(string))

type ChannelParticipationMetricsReporter

type ChannelParticipationMetricsReporter struct {
	ReportConsensusRelationAndStatusMetricsStub func(string, types.ConsensusRelation, types.Status)
	// contains filtered or unexported fields
}

func (*ChannelParticipationMetricsReporter) Invocations

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

func (*ChannelParticipationMetricsReporter) ReportConsensusRelationAndStatusMetrics

func (fake *ChannelParticipationMetricsReporter) ReportConsensusRelationAndStatusMetrics(arg1 string, arg2 types.ConsensusRelation, arg3 types.Status)

func (*ChannelParticipationMetricsReporter) ReportConsensusRelationAndStatusMetricsArgsForCall

func (fake *ChannelParticipationMetricsReporter) ReportConsensusRelationAndStatusMetricsArgsForCall(i int) (string, types.ConsensusRelation, types.Status)

func (*ChannelParticipationMetricsReporter) ReportConsensusRelationAndStatusMetricsCallCount

func (fake *ChannelParticipationMetricsReporter) ReportConsensusRelationAndStatusMetricsCallCount() int

func (*ChannelParticipationMetricsReporter) ReportConsensusRelationAndStatusMetricsCalls

func (fake *ChannelParticipationMetricsReporter) ReportConsensusRelationAndStatusMetricsCalls(stub func(string, types.ConsensusRelation, types.Status))

type ChannelPuller

type ChannelPuller struct {
	CloseStub func()

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

	PullBlockStub func(uint64) *common.Block

	UpdateEndpointsStub func([]cluster.EndpointCriteria)
	// contains filtered or unexported fields
}

func (*ChannelPuller) Close

func (fake *ChannelPuller) Close()

func (*ChannelPuller) CloseCallCount

func (fake *ChannelPuller) CloseCallCount() int

func (*ChannelPuller) CloseCalls

func (fake *ChannelPuller) CloseCalls(stub func())

func (*ChannelPuller) HeightsByEndpoints

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

func (*ChannelPuller) HeightsByEndpointsCallCount

func (fake *ChannelPuller) HeightsByEndpointsCallCount() int

func (*ChannelPuller) HeightsByEndpointsCalls

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

func (*ChannelPuller) HeightsByEndpointsReturns

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

func (*ChannelPuller) HeightsByEndpointsReturnsOnCall

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

func (*ChannelPuller) Invocations

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

func (*ChannelPuller) PullBlock

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

func (*ChannelPuller) PullBlockArgsForCall

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

func (*ChannelPuller) PullBlockCallCount

func (fake *ChannelPuller) PullBlockCallCount() int

func (*ChannelPuller) PullBlockCalls

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

func (*ChannelPuller) PullBlockReturns

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

func (*ChannelPuller) PullBlockReturnsOnCall

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

func (*ChannelPuller) UpdateEndpoints

func (fake *ChannelPuller) UpdateEndpoints(arg1 []cluster.EndpointCriteria)

func (*ChannelPuller) UpdateEndpointsArgsForCall

func (fake *ChannelPuller) UpdateEndpointsArgsForCall(i int) []cluster.EndpointCriteria

func (*ChannelPuller) UpdateEndpointsCallCount

func (fake *ChannelPuller) UpdateEndpointsCallCount() int

func (*ChannelPuller) UpdateEndpointsCalls

func (fake *ChannelPuller) UpdateEndpointsCalls(stub func([]cluster.EndpointCriteria))

type ClusterConsenter

type ClusterConsenter struct {
	IsChannelMemberStub func(*common.Block) (bool, error)

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

func (*ClusterConsenter) Invocations

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

func (*ClusterConsenter) IsChannelMember

func (fake *ClusterConsenter) IsChannelMember(arg1 *common.Block) (bool, error)

func (*ClusterConsenter) IsChannelMemberArgsForCall

func (fake *ClusterConsenter) IsChannelMemberArgsForCall(i int) *common.Block

func (*ClusterConsenter) IsChannelMemberCallCount

func (fake *ClusterConsenter) IsChannelMemberCallCount() int

func (*ClusterConsenter) IsChannelMemberCalls

func (fake *ClusterConsenter) IsChannelMemberCalls(stub func(*common.Block) (bool, error))

func (*ClusterConsenter) IsChannelMemberReturns

func (fake *ClusterConsenter) IsChannelMemberReturns(result1 bool, result2 error)

func (*ClusterConsenter) IsChannelMemberReturnsOnCall

func (fake *ClusterConsenter) IsChannelMemberReturnsOnCall(i int, result1 bool, result2 error)

func (*ClusterConsenter) RemoveInactiveChainRegistry

func (fake *ClusterConsenter) RemoveInactiveChainRegistry()

func (*ClusterConsenter) RemoveInactiveChainRegistryCallCount

func (fake *ClusterConsenter) RemoveInactiveChainRegistryCallCount() int

func (*ClusterConsenter) RemoveInactiveChainRegistryCalls

func (fake *ClusterConsenter) RemoveInactiveChainRegistryCalls(stub func())

type LedgerResources

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

	BlockStub func(uint64) *common.Block

	ChannelIDStub func() string

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

func (*LedgerResources) Append

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

func (*LedgerResources) AppendArgsForCall

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

func (*LedgerResources) AppendCallCount

func (fake *LedgerResources) AppendCallCount() int

func (*LedgerResources) AppendCalls

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

func (*LedgerResources) AppendReturns

func (fake *LedgerResources) AppendReturns(result1 error)

func (*LedgerResources) AppendReturnsOnCall

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

func (*LedgerResources) Block

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

func (*LedgerResources) BlockArgsForCall

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

func (*LedgerResources) BlockCallCount

func (fake *LedgerResources) BlockCallCount() int

func (*LedgerResources) BlockCalls

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

func (*LedgerResources) BlockReturns

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

func (*LedgerResources) BlockReturnsOnCall

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

func (*LedgerResources) ChannelID

func (fake *LedgerResources) ChannelID() string

func (*LedgerResources) ChannelIDCallCount

func (fake *LedgerResources) ChannelIDCallCount() int

func (*LedgerResources) ChannelIDCalls

func (fake *LedgerResources) ChannelIDCalls(stub func() string)

func (*LedgerResources) ChannelIDReturns

func (fake *LedgerResources) ChannelIDReturns(result1 string)

func (*LedgerResources) ChannelIDReturnsOnCall

func (fake *LedgerResources) ChannelIDReturnsOnCall(i int, result1 string)

func (*LedgerResources) Height

func (fake *LedgerResources) Height() uint64

func (*LedgerResources) HeightCallCount

func (fake *LedgerResources) HeightCallCount() int

func (*LedgerResources) HeightCalls

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

func (*LedgerResources) HeightReturns

func (fake *LedgerResources) HeightReturns(result1 uint64)

func (*LedgerResources) HeightReturnsOnCall

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

func (*LedgerResources) Invocations

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

type SignerSerializer

type SignerSerializer struct {
	SerializeStub func() ([]byte, error)

	SignStub func([]byte) ([]byte, error)
	// contains filtered or unexported fields
}

func (*SignerSerializer) Invocations

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

func (*SignerSerializer) Serialize

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

func (*SignerSerializer) SerializeCallCount

func (fake *SignerSerializer) SerializeCallCount() int

func (*SignerSerializer) SerializeCalls

func (fake *SignerSerializer) SerializeCalls(stub func() ([]byte, error))

func (*SignerSerializer) SerializeReturns

func (fake *SignerSerializer) SerializeReturns(result1 []byte, result2 error)

func (*SignerSerializer) SerializeReturnsOnCall

func (fake *SignerSerializer) SerializeReturnsOnCall(i int, result1 []byte, result2 error)

func (*SignerSerializer) Sign

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

func (*SignerSerializer) SignArgsForCall

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

func (*SignerSerializer) SignCallCount

func (fake *SignerSerializer) SignCallCount() int

func (*SignerSerializer) SignCalls

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

func (*SignerSerializer) SignReturns

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

func (*SignerSerializer) SignReturnsOnCall

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

type TimeAfter

type TimeAfter struct {
	AfterStub func(time.Duration) <-chan time.Time
	// contains filtered or unexported fields
}

func (*TimeAfter) After

func (fake *TimeAfter) After(arg1 time.Duration) <-chan time.Time

func (*TimeAfter) AfterArgsForCall

func (fake *TimeAfter) AfterArgsForCall(i int) time.Duration

func (*TimeAfter) AfterCallCount

func (fake *TimeAfter) AfterCallCount() int

func (*TimeAfter) AfterCalls

func (fake *TimeAfter) AfterCalls(stub func(time.Duration) <-chan time.Time)

func (*TimeAfter) AfterReturns

func (fake *TimeAfter) AfterReturns(result1 <-chan time.Time)

func (*TimeAfter) AfterReturnsOnCall

func (fake *TimeAfter) AfterReturnsOnCall(i int, result1 <-chan time.Time)

func (*TimeAfter) Invocations

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

Jump to

Keyboard shortcuts

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