mocks

package
v2.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 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 AccountKeeper

type AccountKeeper struct {
	mock.Mock
}

AccountKeeper is an autogenerated mock type for the AccountKeeper type

func NewAccountKeeper

func NewAccountKeeper(t interface {
	mock.TestingT
	Cleanup(func())
},
) *AccountKeeper

NewAccountKeeper creates a new instance of AccountKeeper. 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 (*AccountKeeper) GetAccount

func (_m *AccountKeeper) GetAccount(ctx context.Context, addr types.AccAddress) types.AccountI

GetAccount provides a mock function with given fields: ctx, addr

func (*AccountKeeper) HasAccount

func (_m *AccountKeeper) HasAccount(ctx context.Context, addr types.AccAddress) bool

HasAccount provides a mock function with given fields: ctx, addr

func (*AccountKeeper) NewAccountWithAddress

func (_m *AccountKeeper) NewAccountWithAddress(ctx context.Context, addr types.AccAddress) types.AccountI

NewAccountWithAddress provides a mock function with given fields: ctx, addr

func (*AccountKeeper) SetAccount

func (_m *AccountKeeper) SetAccount(ctx context.Context, acc types.AccountI)

SetAccount provides a mock function with given fields: ctx, acc

type BankKeeper

type BankKeeper struct {
	mock.Mock
}

BankKeeper is an autogenerated mock type for the BankKeeper type

func NewBankKeeper

func NewBankKeeper(t interface {
	mock.TestingT
	Cleanup(func())
},
) *BankKeeper

NewBankKeeper creates a new instance of BankKeeper. 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 (*BankKeeper) SpendableCoins

func (_m *BankKeeper) SpendableCoins(ctx context.Context, addr types.AccAddress) types.Coins

SpendableCoins provides a mock function with given fields: ctx, addr

type EvmKeeper

type EvmKeeper struct {
	mock.Mock
}

EvmKeeper is an autogenerated mock type for the EvmKeeper type

func NewEvmKeeper

func NewEvmKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *EvmKeeper

NewEvmKeeper creates a new instance of EvmKeeper. 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 (*EvmKeeper) PickValidatorForMessage

func (_m *EvmKeeper) PickValidatorForMessage(ctx context.Context, chainReferenceID string, req *xchain.JobRequirements) (string, string, error)

PickValidatorForMessage provides a mock function with given fields: ctx, chainReferenceID, req

func (*EvmKeeper) PreJobExecution

func (_m *EvmKeeper) PreJobExecution(ctx context.Context, job *types.Job) error

PreJobExecution provides a mock function with given fields: ctx, job

type Keeper

type Keeper struct {
	mock.Mock
}

Keeper is an autogenerated mock type for the Keeper type

func NewKeeper

func NewKeeper(t interface {
	mock.TestingT
	Cleanup(func())
},
) *Keeper

NewKeeper creates a new instance of Keeper. 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 (*Keeper) AddNewJob

func (_m *Keeper) AddNewJob(ctx context.Context, job *types.Job) error

AddNewJob provides a mock function with given fields: ctx, job

func (*Keeper) ExecuteJob

func (_m *Keeper) ExecuteJob(ctx context.Context, jobID string, payload []byte, senderAddress cosmos_sdktypes.AccAddress, contractAddr cosmos_sdktypes.AccAddress) (uint64, error)

ExecuteJob provides a mock function with given fields: ctx, jobID, payload, senderAddress, contractAddr

func (*Keeper) GetAccount

GetAccount provides a mock function with given fields: ctx, addr

func (*Keeper) GetJob

func (_m *Keeper) GetJob(ctx context.Context, jobID string) (*types.Job, error)

GetJob provides a mock function with given fields: ctx, jobID

func (*Keeper) Logger

func (_m *Keeper) Logger(ctx context.Context) log.Logger

Logger provides a mock function with given fields: ctx

func (*Keeper) PreJobExecution

func (_m *Keeper) PreJobExecution(ctx context.Context, job *types.Job) error

PreJobExecution provides a mock function with given fields: ctx, job

func (*Keeper) ScheduleNow

func (_m *Keeper) ScheduleNow(ctx context.Context, jobID string, in []byte, senderAddress cosmos_sdktypes.AccAddress, contractAddress cosmos_sdktypes.AccAddress) (uint64, error)

ScheduleNow provides a mock function with given fields: ctx, jobID, in, senderAddress, contractAddress

type ValsetKeeper

type ValsetKeeper struct {
	mock.Mock
}

ValsetKeeper is an autogenerated mock type for the ValsetKeeper type

func NewValsetKeeper

func NewValsetKeeper(t interface {
	mock.TestingT
	Cleanup(func())
},
) *ValsetKeeper

NewValsetKeeper creates a new instance of ValsetKeeper. 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 (*ValsetKeeper) GetCurrentSnapshot

func (_m *ValsetKeeper) GetCurrentSnapshot(ctx context.Context) (*types.Snapshot, error)

GetCurrentSnapshot provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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