testutil

package
v0.7.1 Latest Latest
Warning

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

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

Documentation

Overview

Package testutil is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAccountKeeper

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

MockAccountKeeper is a mock of AccountKeeper interface.

func NewMockAccountKeeper

func NewMockAccountKeeper(ctrl *gomock.Controller) *MockAccountKeeper

NewMockAccountKeeper creates a new mock instance.

func (*MockAccountKeeper) AddressCodec

func (m *MockAccountKeeper) AddressCodec() address.Codec

AddressCodec mocks base method.

func (*MockAccountKeeper) EXPECT

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

func (*MockAccountKeeper) GetModuleAccount

func (m *MockAccountKeeper) GetModuleAccount(ctx context.Context, moduleName string) types.ModuleAccountI

GetModuleAccount mocks base method.

func (*MockAccountKeeper) GetModuleAddress

func (m *MockAccountKeeper) GetModuleAddress(name string) types.AccAddress

GetModuleAddress mocks base method.

func (*MockAccountKeeper) SetModuleAccount

func (m *MockAccountKeeper) SetModuleAccount(arg0 context.Context, arg1 types.ModuleAccountI)

SetModuleAccount mocks base method.

type MockAccountKeeperMockRecorder

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

MockAccountKeeperMockRecorder is the mock recorder for MockAccountKeeper.

func (*MockAccountKeeperMockRecorder) AddressCodec

func (mr *MockAccountKeeperMockRecorder) AddressCodec() *gomock.Call

AddressCodec indicates an expected call of AddressCodec.

func (*MockAccountKeeperMockRecorder) GetModuleAccount

func (mr *MockAccountKeeperMockRecorder) GetModuleAccount(ctx, moduleName interface{}) *gomock.Call

GetModuleAccount indicates an expected call of GetModuleAccount.

func (*MockAccountKeeperMockRecorder) GetModuleAddress

func (mr *MockAccountKeeperMockRecorder) GetModuleAddress(name interface{}) *gomock.Call

GetModuleAddress indicates an expected call of GetModuleAddress.

func (*MockAccountKeeperMockRecorder) SetModuleAccount

func (mr *MockAccountKeeperMockRecorder) SetModuleAccount(arg0, arg1 interface{}) *gomock.Call

SetModuleAccount indicates an expected call of SetModuleAccount.

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 added in v0.2.6

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

GetBalance mocks base method.

func (*MockBankKeeper) GetSupply

func (m *MockBankKeeper) GetSupply(ctx context.Context, denom string) types.Coin

GetSupply mocks base method.

func (*MockBankKeeper) MintCoins

func (m *MockBankKeeper) MintCoins(ctx context.Context, name string, amt types.Coins) error

MintCoins mocks base method.

func (*MockBankKeeper) SendCoinsFromModuleToAccount

func (m *MockBankKeeper) SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr types.AccAddress, amt types.Coins) error

SendCoinsFromModuleToAccount mocks base method.

func (*MockBankKeeper) SendCoinsFromModuleToModule

func (m *MockBankKeeper) SendCoinsFromModuleToModule(ctx context.Context, senderModule, recipientModule string, amt types.Coins) error

SendCoinsFromModuleToModule mocks base method.

type MockBankKeeperMockRecorder

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

MockBankKeeperMockRecorder is the mock recorder for MockBankKeeper.

func (*MockBankKeeperMockRecorder) GetBalance added in v0.5.0

func (mr *MockBankKeeperMockRecorder) GetBalance(ctx context.Context, addr types.AccAddress, denom string) *gomock.Call

GetSupply indicates an expected call of GetSupply.

func (*MockBankKeeperMockRecorder) GetSupply

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

GetSupply indicates an expected call of GetSupply.

func (*MockBankKeeperMockRecorder) MintCoins

func (mr *MockBankKeeperMockRecorder) MintCoins(ctx, name, amt interface{}) *gomock.Call

MintCoins indicates an expected call of MintCoins.

func (*MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount

func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt interface{}) *gomock.Call

SendCoinsFromModuleToAccount indicates an expected call of SendCoinsFromModuleToAccount.

func (*MockBankKeeperMockRecorder) SendCoinsFromModuleToModule

func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToModule(ctx, senderModule, recipientModule, amt interface{}) *gomock.Call

SendCoinsFromModuleToModule indicates an expected call of SendCoinsFromModuleToModule.

type MockEmissionsKeeper added in v0.2.6

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

MockEmissionsKeeper is a mock of EmissionsKeeper interface.

func NewMockEmissionsKeeper added in v0.2.6

func NewMockEmissionsKeeper(ctrl *gomock.Controller) *MockEmissionsKeeper

NewEmissionsEmissionsKeeper creates a new mock instance.

func (*MockEmissionsKeeper) EXPECT added in v0.2.6

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

func (*MockEmissionsKeeper) GetParams added in v0.2.6

func (*MockEmissionsKeeper) GetParamsBlocksPerMonth added in v0.2.6

func (m *MockEmissionsKeeper) GetParamsBlocksPerMonth(ctx context.Context) (uint64, error)

func (*MockEmissionsKeeper) GetPreviousPercentageRewardToStakedReputers added in v0.2.6

func (m *MockEmissionsKeeper) GetPreviousPercentageRewardToStakedReputers(ctx context.Context) (alloraMath.Dec, error)

func (*MockEmissionsKeeper) GetTotalStake added in v0.2.6

func (m *MockEmissionsKeeper) GetTotalStake(ctx context.Context) (math.Int, error)

func (*MockEmissionsKeeper) IsWhitelistAdmin added in v0.2.6

func (m *MockEmissionsKeeper) IsWhitelistAdmin(ctx context.Context, admin string) (bool, error)

func (*MockEmissionsKeeper) SetParams added in v0.5.0

func (m *MockEmissionsKeeper) SetParams(ctx context.Context, params emissionstypes.Params) error

func (*MockEmissionsKeeper) SetRewardCurrentBlockEmission added in v0.6.0

func (m *MockEmissionsKeeper) SetRewardCurrentBlockEmission(ctx context.Context, emission math.Int) error

type MockEmissionsKeeperMockRecorder added in v0.2.6

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

MockStakingKeeperMockRecorder is the mock recorder for MockStakingKeeper.

func (*MockEmissionsKeeperMockRecorder) GetParams added in v0.2.6

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

func (*MockEmissionsKeeperMockRecorder) GetParamsBlocksPerMonth added in v0.2.6

func (mr *MockEmissionsKeeperMockRecorder) GetParamsBlocksPerMonth(ctx interface{}) *gomock.Call

func (*MockEmissionsKeeperMockRecorder) GetPreviousPercentageRewardToStakedReputers added in v0.2.6

func (mr *MockEmissionsKeeperMockRecorder) GetPreviousPercentageRewardToStakedReputers(ctx interface{}) *gomock.Call

func (*MockEmissionsKeeperMockRecorder) GetTotalStake added in v0.2.6

func (mr *MockEmissionsKeeperMockRecorder) GetTotalStake(ctx interface{}) *gomock.Call

GetTotalStake indicates an expected call of GetTotalStake.

func (*MockEmissionsKeeperMockRecorder) IsWhitelistAdmin added in v0.2.6

func (mr *MockEmissionsKeeperMockRecorder) IsWhitelistAdmin(ctx interface{}, admin interface{}) *gomock.Call

func (*MockEmissionsKeeperMockRecorder) SetParams added in v0.5.0

func (mr *MockEmissionsKeeperMockRecorder) SetParams(ctx, params interface{}) *gomock.Call

func (*MockEmissionsKeeperMockRecorder) SetRewardCurrentBlockEmission added in v0.6.0

func (mr *MockEmissionsKeeperMockRecorder) SetRewardCurrentBlockEmission(ctx interface{}, emission interface{}) *gomock.Call

type MockMintKeeper added in v0.3.0

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

MockMintKeeper is a mock of MintKeeper interface.

func NewMockMintKeeper added in v0.3.0

func NewMockMintKeeper(ctrl *gomock.Controller) *MockMintKeeper

NewMintMintKeeper creates a new mock instance.

func (*MockMintKeeper) CosmosValidatorStakedSupply added in v0.3.0

func (m *MockMintKeeper) CosmosValidatorStakedSupply(ctx context.Context) (math.Int, error)

CosmosValidatorStakedSupply(ctx context.Context) (math.Int, error)

func (*MockMintKeeper) EXPECT added in v0.3.0

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

func (*MockMintKeeper) GetEmissionsKeeperTotalStake added in v0.3.0

func (m *MockMintKeeper) GetEmissionsKeeperTotalStake(ctx context.Context) (math.Int, error)

GetEmissionsKeeperTotalStake(ctx context.Context) (math.Int, error)

func (*MockMintKeeper) GetPreviousPercentageRewardToStakedReputers added in v0.3.0

func (m *MockMintKeeper) GetPreviousPercentageRewardToStakedReputers(ctx context.Context) (math.LegacyDec, error)

GetPreviousPercentageRewardToStakedReputers(ctx context.Context) (math.LegacyDec, error)

func (*MockMintKeeper) GetPreviousRewardEmissionPerUnitStakedToken added in v0.3.0

func (m *MockMintKeeper) GetPreviousRewardEmissionPerUnitStakedToken(ctx context.Context) (math.LegacyDec, error)

GetPreviousRewardEmissionPerUnitStakedToken(ctx context.Context) (math.LegacyDec, error)

func (*MockMintKeeper) GetTotalCurrTokenSupply added in v0.3.0

func (m *MockMintKeeper) GetTotalCurrTokenSupply(ctx context.Context) sdk.Coin

GetTotalCurrTokenSupply(ctx context.Context) sdk.Coin

type MockMintKeeperMockRecorder added in v0.3.0

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

MockStakingKeeperMockRecorder is the mock recorder for MockStakingKeeper.

func (*MockMintKeeperMockRecorder) CosmosValidatorStakedSupply added in v0.3.0

func (mr *MockMintKeeperMockRecorder) CosmosValidatorStakedSupply(ctx interface{}) *gomock.Call

func (*MockMintKeeperMockRecorder) GetEmissionsKeeperTotalStake added in v0.3.0

func (mr *MockMintKeeperMockRecorder) GetEmissionsKeeperTotalStake(ctx interface{}) *gomock.Call

func (*MockMintKeeperMockRecorder) GetPreviousPercentageRewardToStakedReputers added in v0.3.0

func (mr *MockMintKeeperMockRecorder) GetPreviousPercentageRewardToStakedReputers(ctx interface{}) *gomock.Call

func (*MockMintKeeperMockRecorder) GetPreviousRewardEmissionPerUnitStakedToken added in v0.3.0

func (mr *MockMintKeeperMockRecorder) GetPreviousRewardEmissionPerUnitStakedToken(ctx interface{}) *gomock.Call

func (*MockMintKeeperMockRecorder) GetTotalCurrTokenSupply added in v0.3.0

func (mr *MockMintKeeperMockRecorder) GetTotalCurrTokenSupply(ctx interface{}) *gomock.Call

type MockStakingKeeper

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

MockStakingKeeper is a mock of StakingKeeper interface.

func NewMockStakingKeeper

func NewMockStakingKeeper(ctrl *gomock.Controller) *MockStakingKeeper

NewMockStakingKeeper creates a new mock instance.

func (*MockStakingKeeper) BondedRatio

func (m *MockStakingKeeper) BondedRatio(ctx context.Context) (math.LegacyDec, error)

BondedRatio mocks base method.

func (*MockStakingKeeper) EXPECT

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

func (*MockStakingKeeper) TotalBondedTokens added in v0.2.6

func (m *MockStakingKeeper) TotalBondedTokens(ctx context.Context) (math.Int, error)

TotalBondedTokens mocks base method.

type MockStakingKeeperMockRecorder

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

MockStakingKeeperMockRecorder is the mock recorder for MockStakingKeeper.

func (*MockStakingKeeperMockRecorder) BondedRatio

func (mr *MockStakingKeeperMockRecorder) BondedRatio(ctx interface{}) *gomock.Call

BondedRatio indicates an expected call of BondedRatio.

func (*MockStakingKeeperMockRecorder) TotalBondedTokens added in v0.2.6

func (mr *MockStakingKeeperMockRecorder) TotalBondedTokens(ctx interface{}) *gomock.Call

TotalBondedTokens indicates an expected call of StakingTokenSupply.

Jump to

Keyboard shortcuts

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