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: 11 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 GenRandomVals

func GenRandomVals(count int, startBlock uint64, power int64, timeAlive uint64, randomise bool, startID uint64, nonce uint64) (validators []types.Validator)

GenRandomVals generate random validators

func GetRandomValidatorSet

func GetRandomValidatorSet(count int) types.ValidatorSet

func LoadRandomValidatorSet

func LoadRandomValidatorSet(require *require.Assertions, count int, keeper *stakingKeeper.Keeper, ctx sdk.Context, randomise bool, timeAlive int, nonce uint64) types.ValidatorSet

LoadRandomValidatorSet loads random validator set

Types

type MockBankKeeper

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

MockBankKeeper is a mock of BankKeeper interface.

func NewMockBankKeeper

func NewMockBankKeeper(ctrl *gomock.Controller) *MockBankKeeper

NewMockBankKeeper creates a new mock instance.

func (*MockBankKeeper) EXPECT

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

func (*MockBankKeeper) GetBalance

func (m *MockBankKeeper) GetBalance(ctx context.Context, addr types.AccAddress, denom string) types.Coin

GetBalance mocks base method.

func (*MockBankKeeper) SendCoins

func (m *MockBankKeeper) SendCoins(ctx context.Context, fromAddr, toAddr types.AccAddress, amt types.Coins) error

SendCoins mocks base method.

type MockBankKeeperMockRecorder

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

MockBankKeeperMockRecorder is the mock recorder for MockBankKeeper.

func (*MockBankKeeperMockRecorder) GetBalance

func (mr *MockBankKeeperMockRecorder) GetBalance(ctx, addr, denom interface{}) *gomock.Call

GetBalance indicates an expected call of GetBalance.

func (*MockBankKeeperMockRecorder) SendCoins

func (mr *MockBankKeeperMockRecorder) SendCoins(ctx, fromAddr, toAddr, amt interface{}) *gomock.Call

SendCoins indicates an expected call of SendCoins.

type MockCheckpointKeeper

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

MockCheckpointKeeper is a mock of CheckpointKeeper interface.

func NewMockCheckpointKeeper

func NewMockCheckpointKeeper(ctrl *gomock.Controller) *MockCheckpointKeeper

NewMockCheckpointKeeper creates a new mock instance.

func (*MockCheckpointKeeper) EXPECT

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

func (*MockCheckpointKeeper) GetAckCount

func (m *MockCheckpointKeeper) GetAckCount(ctx context.Context) (uint64, error)

GetAckCount mocks base method.

type MockCheckpointKeeperMockRecorder

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

MockCheckpointKeeperMockRecorder is the mock recorder for MockCheckpointKeeper.

func (*MockCheckpointKeeperMockRecorder) GetAckCount

func (mr *MockCheckpointKeeperMockRecorder) GetAckCount(ctx interface{}) *gomock.Call

GetAckCount indicates an expected call of GetAckCount.

Jump to

Keyboard shortcuts

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