testutil

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package testutil is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenRandCheckpoint

func GenRandCheckpoint(start, headerSize, id uint64) (headerBlock types.Checkpoint)

GenRandCheckpoint returns a random checkpoint header

func RandDividendAccounts

func RandDividendAccounts() []hmTypes.DividendAccount

func RandomBytes

func RandomBytes() []byte

Types

type MockChainManagerKeeper

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

MockChainManagerKeeper is a mock of ChainManagerKeeper interface.

func NewMockChainManagerKeeper

func NewMockChainManagerKeeper(ctrl *gomock.Controller) *MockChainManagerKeeper

NewMockChainManagerKeeper creates a new mock instance.

func (*MockChainManagerKeeper) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockChainManagerKeeper) GetParams

GetParams mocks base method.

type MockChainManagerKeeperMockRecorder

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

MockChainManagerKeeperMockRecorder is the mock recorder for MockChainManagerKeeper.

func (*MockChainManagerKeeperMockRecorder) GetParams

func (mr *MockChainManagerKeeperMockRecorder) GetParams(ctx interface{}) *gomock.Call

GetParams indicates an expected call of GetParams.

type MockStakeKeeper

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

MockStakeKeeper is a mock of StakeKeeper interface.

func NewMockStakeKeeper

func NewMockStakeKeeper(ctrl *gomock.Controller) *MockStakeKeeper

NewMockStakeKeeper creates a new mock instance.

func (*MockStakeKeeper) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStakeKeeper) GetCurrentProposer

func (m *MockStakeKeeper) GetCurrentProposer(ctx context.Context) *types1.Validator

GetCurrentProposer mocks base method.

func (*MockStakeKeeper) GetValidatorSet

func (m *MockStakeKeeper) GetValidatorSet(ctx context.Context) (types1.ValidatorSet, error)

GetValidatorSet mocks base method.

func (*MockStakeKeeper) IncrementAccum

func (m *MockStakeKeeper) IncrementAccum(ctx context.Context, times int) error

IncrementAccum mocks base method.

type MockStakeKeeperMockRecorder

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

MockStakeKeeperMockRecorder is the mock recorder for MockStakeKeeper.

func (*MockStakeKeeperMockRecorder) GetCurrentProposer

func (mr *MockStakeKeeperMockRecorder) GetCurrentProposer(ctx interface{}) *gomock.Call

GetCurrentProposer indicates an expected call of GetCurrentProposer.

func (*MockStakeKeeperMockRecorder) GetValidatorSet

func (mr *MockStakeKeeperMockRecorder) GetValidatorSet(ctx interface{}) *gomock.Call

GetValidatorSet indicates an expected call of GetValidatorSet.

func (*MockStakeKeeperMockRecorder) IncrementAccum

func (mr *MockStakeKeeperMockRecorder) IncrementAccum(ctx, times interface{}) *gomock.Call

IncrementAccum indicates an expected call of IncrementAccum.

type MockTopupKeeper

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

MockTopupKeeper is a mock of TopupKeeper interface.

func NewMockTopupKeeper

func NewMockTopupKeeper(ctrl *gomock.Controller) *MockTopupKeeper

NewMockTopupKeeper creates a new mock instance.

func (*MockTopupKeeper) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTopupKeeper) GetAllDividendAccounts

func (m *MockTopupKeeper) GetAllDividendAccounts(ctx context.Context) ([]types.DividendAccount, error)

GetAllDividendAccounts mocks base method.

type MockTopupKeeperMockRecorder

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

MockTopupKeeperMockRecorder is the mock recorder for MockTopupKeeper.

func (*MockTopupKeeperMockRecorder) GetAllDividendAccounts

func (mr *MockTopupKeeperMockRecorder) GetAllDividendAccounts(ctx interface{}) *gomock.Call

GetAllDividendAccounts indicates an expected call of GetAllDividendAccounts.

Jump to

Keyboard shortcuts

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