mocks

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockEventPublisher

type BlockEventPublisher struct {
	mock.Mock
}

BlockEventPublisher is an autogenerated mock type for the BlockEventPublisher type

func NewBlockEventPublisher

func NewBlockEventPublisher(t interface {
	mock.TestingT
	Cleanup(func())
}) *BlockEventPublisher

NewBlockEventPublisher creates a new instance of BlockEventPublisher. 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 (*BlockEventPublisher) EXPECT added in v1.4.0

func (*BlockEventPublisher) PublishEventNewBlock

func (_mock *BlockEventPublisher) PublishEventNewBlock(eventDataNewBlock types.EventDataNewBlock) error

PublishEventNewBlock provides a mock function for the type BlockEventPublisher

func (*BlockEventPublisher) PublishEventNewBlockHeader

func (_mock *BlockEventPublisher) PublishEventNewBlockHeader(eventDataNewBlockHeader types.EventDataNewBlockHeader) error

PublishEventNewBlockHeader provides a mock function for the type BlockEventPublisher

func (*BlockEventPublisher) PublishEventNewEvidence

func (_mock *BlockEventPublisher) PublishEventNewEvidence(eventDataNewEvidence types.EventDataNewEvidence) error

PublishEventNewEvidence provides a mock function for the type BlockEventPublisher

func (*BlockEventPublisher) PublishEventTx

func (_mock *BlockEventPublisher) PublishEventTx(eventDataTx types.EventDataTx) error

PublishEventTx provides a mock function for the type BlockEventPublisher

func (*BlockEventPublisher) PublishEventValidatorSetUpdates

func (_mock *BlockEventPublisher) PublishEventValidatorSetUpdates(eventDataValidatorSetUpdate types.EventDataValidatorSetUpdate) error

PublishEventValidatorSetUpdates provides a mock function for the type BlockEventPublisher

type BlockEventPublisher_Expecter added in v1.4.0

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

func (*BlockEventPublisher_Expecter) PublishEventNewBlock added in v1.4.0

func (_e *BlockEventPublisher_Expecter) PublishEventNewBlock(eventDataNewBlock interface{}) *BlockEventPublisher_PublishEventNewBlock_Call

PublishEventNewBlock is a helper method to define mock.On call

  • eventDataNewBlock types.EventDataNewBlock

func (*BlockEventPublisher_Expecter) PublishEventNewBlockHeader added in v1.4.0

func (_e *BlockEventPublisher_Expecter) PublishEventNewBlockHeader(eventDataNewBlockHeader interface{}) *BlockEventPublisher_PublishEventNewBlockHeader_Call

PublishEventNewBlockHeader is a helper method to define mock.On call

  • eventDataNewBlockHeader types.EventDataNewBlockHeader

func (*BlockEventPublisher_Expecter) PublishEventNewEvidence added in v1.4.0

func (_e *BlockEventPublisher_Expecter) PublishEventNewEvidence(eventDataNewEvidence interface{}) *BlockEventPublisher_PublishEventNewEvidence_Call

PublishEventNewEvidence is a helper method to define mock.On call

  • eventDataNewEvidence types.EventDataNewEvidence

func (*BlockEventPublisher_Expecter) PublishEventTx added in v1.4.0

func (_e *BlockEventPublisher_Expecter) PublishEventTx(eventDataTx interface{}) *BlockEventPublisher_PublishEventTx_Call

PublishEventTx is a helper method to define mock.On call

  • eventDataTx types.EventDataTx

func (*BlockEventPublisher_Expecter) PublishEventValidatorSetUpdates added in v1.4.0

func (_e *BlockEventPublisher_Expecter) PublishEventValidatorSetUpdates(eventDataValidatorSetUpdate interface{}) *BlockEventPublisher_PublishEventValidatorSetUpdates_Call

PublishEventValidatorSetUpdates is a helper method to define mock.On call

  • eventDataValidatorSetUpdate types.EventDataValidatorSetUpdate

type BlockEventPublisher_PublishEventNewBlockHeader_Call added in v1.4.0

type BlockEventPublisher_PublishEventNewBlockHeader_Call struct {
	*mock.Call
}

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

func (*BlockEventPublisher_PublishEventNewBlockHeader_Call) Return added in v1.4.0

func (*BlockEventPublisher_PublishEventNewBlockHeader_Call) Run added in v1.4.0

func (*BlockEventPublisher_PublishEventNewBlockHeader_Call) RunAndReturn added in v1.4.0

type BlockEventPublisher_PublishEventNewBlock_Call added in v1.4.0

type BlockEventPublisher_PublishEventNewBlock_Call struct {
	*mock.Call
}

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

func (*BlockEventPublisher_PublishEventNewBlock_Call) Return added in v1.4.0

func (*BlockEventPublisher_PublishEventNewBlock_Call) Run added in v1.4.0

func (*BlockEventPublisher_PublishEventNewBlock_Call) RunAndReturn added in v1.4.0

type BlockEventPublisher_PublishEventNewEvidence_Call added in v1.4.0

type BlockEventPublisher_PublishEventNewEvidence_Call struct {
	*mock.Call
}

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

func (*BlockEventPublisher_PublishEventNewEvidence_Call) Return added in v1.4.0

func (*BlockEventPublisher_PublishEventNewEvidence_Call) Run added in v1.4.0

func (*BlockEventPublisher_PublishEventNewEvidence_Call) RunAndReturn added in v1.4.0

type BlockEventPublisher_PublishEventTx_Call added in v1.4.0

type BlockEventPublisher_PublishEventTx_Call struct {
	*mock.Call
}

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

func (*BlockEventPublisher_PublishEventTx_Call) Return added in v1.4.0

func (*BlockEventPublisher_PublishEventTx_Call) Run added in v1.4.0

func (*BlockEventPublisher_PublishEventTx_Call) RunAndReturn added in v1.4.0

type BlockEventPublisher_PublishEventValidatorSetUpdates_Call added in v1.4.0

type BlockEventPublisher_PublishEventValidatorSetUpdates_Call struct {
	*mock.Call
}

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

func (*BlockEventPublisher_PublishEventValidatorSetUpdates_Call) Return added in v1.4.0

func (*BlockEventPublisher_PublishEventValidatorSetUpdates_Call) Run added in v1.4.0

func (*BlockEventPublisher_PublishEventValidatorSetUpdates_Call) RunAndReturn added in v1.4.0

type PrivValidator

type PrivValidator struct {
	mock.Mock
}

PrivValidator is an autogenerated mock type for the PrivValidator type

func NewPrivValidator

func NewPrivValidator(t interface {
	mock.TestingT
	Cleanup(func())
}) *PrivValidator

NewPrivValidator creates a new instance of PrivValidator. 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 (*PrivValidator) EXPECT added in v1.4.0

func (_m *PrivValidator) EXPECT() *PrivValidator_Expecter

func (*PrivValidator) ExtractIntoValidator

func (_mock *PrivValidator) ExtractIntoValidator(ctx context.Context, quorumHash crypto.QuorumHash) *types.Validator

ExtractIntoValidator provides a mock function for the type PrivValidator

func (*PrivValidator) GetFirstQuorumHash

func (_mock *PrivValidator) GetFirstQuorumHash(context1 context.Context) (crypto.QuorumHash, error)

GetFirstQuorumHash provides a mock function for the type PrivValidator

func (*PrivValidator) GetHeight

func (_mock *PrivValidator) GetHeight(ctx context.Context, quorumHash crypto.QuorumHash) (int64, error)

GetHeight provides a mock function for the type PrivValidator

func (*PrivValidator) GetPrivateKey

func (_mock *PrivValidator) GetPrivateKey(ctx context.Context, quorumHash crypto.QuorumHash) (crypto.PrivKey, error)

GetPrivateKey provides a mock function for the type PrivValidator

func (*PrivValidator) GetProTxHash

func (_mock *PrivValidator) GetProTxHash(context1 context.Context) (crypto.ProTxHash, error)

GetProTxHash provides a mock function for the type PrivValidator

func (*PrivValidator) GetPubKey

func (_mock *PrivValidator) GetPubKey(ctx context.Context, quorumHash crypto.QuorumHash) (crypto.PubKey, error)

GetPubKey provides a mock function for the type PrivValidator

func (*PrivValidator) GetThresholdPublicKey

func (_mock *PrivValidator) GetThresholdPublicKey(ctx context.Context, quorumHash crypto.QuorumHash) (crypto.PubKey, error)

GetThresholdPublicKey provides a mock function for the type PrivValidator

func (*PrivValidator) SignProposal

func (_mock *PrivValidator) SignProposal(ctx context.Context, chainID string, quorumType btcjson.LLMQType, quorumHash crypto.QuorumHash, proposal *types0.Proposal) (bytes.HexBytes, error)

SignProposal provides a mock function for the type PrivValidator

func (*PrivValidator) SignVote

func (_mock *PrivValidator) SignVote(ctx context.Context, chainID string, quorumType btcjson.LLMQType, quorumHash crypto.QuorumHash, vote *types0.Vote, logger log.Logger) error

SignVote provides a mock function for the type PrivValidator

func (*PrivValidator) UpdatePrivateKey

func (_mock *PrivValidator) UpdatePrivateKey(ctx context.Context, privateKey crypto.PrivKey, quorumHash crypto.QuorumHash, thresholdPublicKey crypto.PubKey, height int64)

UpdatePrivateKey provides a mock function for the type PrivValidator

type PrivValidator_Expecter added in v1.4.0

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

func (*PrivValidator_Expecter) ExtractIntoValidator added in v1.4.0

func (_e *PrivValidator_Expecter) ExtractIntoValidator(ctx interface{}, quorumHash interface{}) *PrivValidator_ExtractIntoValidator_Call

ExtractIntoValidator is a helper method to define mock.On call

  • ctx context.Context
  • quorumHash crypto.QuorumHash

func (*PrivValidator_Expecter) GetFirstQuorumHash added in v1.4.0

func (_e *PrivValidator_Expecter) GetFirstQuorumHash(context1 interface{}) *PrivValidator_GetFirstQuorumHash_Call

GetFirstQuorumHash is a helper method to define mock.On call

  • context1 context.Context

func (*PrivValidator_Expecter) GetHeight added in v1.4.0

func (_e *PrivValidator_Expecter) GetHeight(ctx interface{}, quorumHash interface{}) *PrivValidator_GetHeight_Call

GetHeight is a helper method to define mock.On call

  • ctx context.Context
  • quorumHash crypto.QuorumHash

func (*PrivValidator_Expecter) GetPrivateKey added in v1.4.0

func (_e *PrivValidator_Expecter) GetPrivateKey(ctx interface{}, quorumHash interface{}) *PrivValidator_GetPrivateKey_Call

GetPrivateKey is a helper method to define mock.On call

  • ctx context.Context
  • quorumHash crypto.QuorumHash

func (*PrivValidator_Expecter) GetProTxHash added in v1.4.0

func (_e *PrivValidator_Expecter) GetProTxHash(context1 interface{}) *PrivValidator_GetProTxHash_Call

GetProTxHash is a helper method to define mock.On call

  • context1 context.Context

func (*PrivValidator_Expecter) GetPubKey added in v1.4.0

func (_e *PrivValidator_Expecter) GetPubKey(ctx interface{}, quorumHash interface{}) *PrivValidator_GetPubKey_Call

GetPubKey is a helper method to define mock.On call

  • ctx context.Context
  • quorumHash crypto.QuorumHash

func (*PrivValidator_Expecter) GetThresholdPublicKey added in v1.4.0

func (_e *PrivValidator_Expecter) GetThresholdPublicKey(ctx interface{}, quorumHash interface{}) *PrivValidator_GetThresholdPublicKey_Call

GetThresholdPublicKey is a helper method to define mock.On call

  • ctx context.Context
  • quorumHash crypto.QuorumHash

func (*PrivValidator_Expecter) SignProposal added in v1.4.0

func (_e *PrivValidator_Expecter) SignProposal(ctx interface{}, chainID interface{}, quorumType interface{}, quorumHash interface{}, proposal interface{}) *PrivValidator_SignProposal_Call

SignProposal is a helper method to define mock.On call

  • ctx context.Context
  • chainID string
  • quorumType btcjson.LLMQType
  • quorumHash crypto.QuorumHash
  • proposal *types0.Proposal

func (*PrivValidator_Expecter) SignVote added in v1.4.0

func (_e *PrivValidator_Expecter) SignVote(ctx interface{}, chainID interface{}, quorumType interface{}, quorumHash interface{}, vote interface{}, logger interface{}) *PrivValidator_SignVote_Call

SignVote is a helper method to define mock.On call

  • ctx context.Context
  • chainID string
  • quorumType btcjson.LLMQType
  • quorumHash crypto.QuorumHash
  • vote *types0.Vote
  • logger log.Logger

func (*PrivValidator_Expecter) UpdatePrivateKey added in v1.4.0

func (_e *PrivValidator_Expecter) UpdatePrivateKey(ctx interface{}, privateKey interface{}, quorumHash interface{}, thresholdPublicKey interface{}, height interface{}) *PrivValidator_UpdatePrivateKey_Call

UpdatePrivateKey is a helper method to define mock.On call

  • ctx context.Context
  • privateKey crypto.PrivKey
  • quorumHash crypto.QuorumHash
  • thresholdPublicKey crypto.PubKey
  • height int64

type PrivValidator_ExtractIntoValidator_Call added in v1.4.0

type PrivValidator_ExtractIntoValidator_Call struct {
	*mock.Call
}

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

func (*PrivValidator_ExtractIntoValidator_Call) Return added in v1.4.0

func (*PrivValidator_ExtractIntoValidator_Call) Run added in v1.4.0

func (*PrivValidator_ExtractIntoValidator_Call) RunAndReturn added in v1.4.0

type PrivValidator_GetFirstQuorumHash_Call added in v1.4.0

type PrivValidator_GetFirstQuorumHash_Call struct {
	*mock.Call
}

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

func (*PrivValidator_GetFirstQuorumHash_Call) Return added in v1.4.0

func (*PrivValidator_GetFirstQuorumHash_Call) Run added in v1.4.0

func (*PrivValidator_GetFirstQuorumHash_Call) RunAndReturn added in v1.4.0

type PrivValidator_GetHeight_Call added in v1.4.0

type PrivValidator_GetHeight_Call struct {
	*mock.Call
}

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

func (*PrivValidator_GetHeight_Call) Return added in v1.4.0

func (*PrivValidator_GetHeight_Call) Run added in v1.4.0

func (*PrivValidator_GetHeight_Call) RunAndReturn added in v1.4.0

func (_c *PrivValidator_GetHeight_Call) RunAndReturn(run func(ctx context.Context, quorumHash crypto.QuorumHash) (int64, error)) *PrivValidator_GetHeight_Call

type PrivValidator_GetPrivateKey_Call added in v1.4.0

type PrivValidator_GetPrivateKey_Call struct {
	*mock.Call
}

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

func (*PrivValidator_GetPrivateKey_Call) Return added in v1.4.0

func (*PrivValidator_GetPrivateKey_Call) Run added in v1.4.0

func (*PrivValidator_GetPrivateKey_Call) RunAndReturn added in v1.4.0

type PrivValidator_GetProTxHash_Call added in v1.4.0

type PrivValidator_GetProTxHash_Call struct {
	*mock.Call
}

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

func (*PrivValidator_GetProTxHash_Call) Return added in v1.4.0

func (*PrivValidator_GetProTxHash_Call) Run added in v1.4.0

func (*PrivValidator_GetProTxHash_Call) RunAndReturn added in v1.4.0

type PrivValidator_GetPubKey_Call added in v1.4.0

type PrivValidator_GetPubKey_Call struct {
	*mock.Call
}

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

func (*PrivValidator_GetPubKey_Call) Return added in v1.4.0

func (*PrivValidator_GetPubKey_Call) Run added in v1.4.0

func (*PrivValidator_GetPubKey_Call) RunAndReturn added in v1.4.0

type PrivValidator_GetThresholdPublicKey_Call added in v1.4.0

type PrivValidator_GetThresholdPublicKey_Call struct {
	*mock.Call
}

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

func (*PrivValidator_GetThresholdPublicKey_Call) Return added in v1.4.0

func (*PrivValidator_GetThresholdPublicKey_Call) Run added in v1.4.0

func (*PrivValidator_GetThresholdPublicKey_Call) RunAndReturn added in v1.4.0

type PrivValidator_SignProposal_Call added in v1.4.0

type PrivValidator_SignProposal_Call struct {
	*mock.Call
}

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

func (*PrivValidator_SignProposal_Call) Return added in v1.4.0

func (*PrivValidator_SignProposal_Call) Run added in v1.4.0

func (_c *PrivValidator_SignProposal_Call) Run(run func(ctx context.Context, chainID string, quorumType btcjson.LLMQType, quorumHash crypto.QuorumHash, proposal *types0.Proposal)) *PrivValidator_SignProposal_Call

func (*PrivValidator_SignProposal_Call) RunAndReturn added in v1.4.0

func (_c *PrivValidator_SignProposal_Call) RunAndReturn(run func(ctx context.Context, chainID string, quorumType btcjson.LLMQType, quorumHash crypto.QuorumHash, proposal *types0.Proposal) (bytes.HexBytes, error)) *PrivValidator_SignProposal_Call

type PrivValidator_SignVote_Call added in v1.4.0

type PrivValidator_SignVote_Call struct {
	*mock.Call
}

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

func (*PrivValidator_SignVote_Call) Return added in v1.4.0

func (*PrivValidator_SignVote_Call) Run added in v1.4.0

func (_c *PrivValidator_SignVote_Call) Run(run func(ctx context.Context, chainID string, quorumType btcjson.LLMQType, quorumHash crypto.QuorumHash, vote *types0.Vote, logger log.Logger)) *PrivValidator_SignVote_Call

func (*PrivValidator_SignVote_Call) RunAndReturn added in v1.4.0

func (_c *PrivValidator_SignVote_Call) RunAndReturn(run func(ctx context.Context, chainID string, quorumType btcjson.LLMQType, quorumHash crypto.QuorumHash, vote *types0.Vote, logger log.Logger) error) *PrivValidator_SignVote_Call

type PrivValidator_UpdatePrivateKey_Call added in v1.4.0

type PrivValidator_UpdatePrivateKey_Call struct {
	*mock.Call
}

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

func (*PrivValidator_UpdatePrivateKey_Call) Return added in v1.4.0

func (*PrivValidator_UpdatePrivateKey_Call) Run added in v1.4.0

func (_c *PrivValidator_UpdatePrivateKey_Call) Run(run func(ctx context.Context, privateKey crypto.PrivKey, quorumHash crypto.QuorumHash, thresholdPublicKey crypto.PubKey, height int64)) *PrivValidator_UpdatePrivateKey_Call

func (*PrivValidator_UpdatePrivateKey_Call) RunAndReturn added in v1.4.0

func (_c *PrivValidator_UpdatePrivateKey_Call) RunAndReturn(run func(ctx context.Context, privateKey crypto.PrivKey, quorumHash crypto.QuorumHash, thresholdPublicKey crypto.PubKey, height int64)) *PrivValidator_UpdatePrivateKey_Call

Jump to

Keyboard shortcuts

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