testutil

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEventEmmited added in v0.3.0

func AssertEventEmmited(t *testing.T, ctx types.Context, event any)

func MustDateTimeToProto added in v0.2.0

func MustDateTimeToProto(timestamp string) *gogotypes.Timestamp

MustDateTimeToProto parses a time.DateTime (YYYY-MM-DD HH:MM:SS) timestamp and converts into a proto Timestamp. Panics if input is invalid

func ProtoEq added in v0.2.0

func ProtoEq[Msg proto.Message](t *testing.T, left, right Msg)

Types

type AccountKeeperStub

type AccountKeeperStub struct {
	Accounts map[string]sdk.AccountI
}

func (*AccountKeeperStub) FirstAcc added in v0.3.0

func (s *AccountKeeperStub) FirstAcc() sdk.AccountI

func (*AccountKeeperStub) GenAccount added in v0.3.0

func (s *AccountKeeperStub) GenAccount() sdk.AccountI

func (*AccountKeeperStub) GetAccount

func (s *AccountKeeperStub) GetAccount(ctx context.Context, address sdk.AccAddress) sdk.AccountI

func (*AccountKeeperStub) NewAccount added in v0.3.0

func (s *AccountKeeperStub) NewAccount(key cryptotypes.PubKey) sdk.AccountI

Jump to

Keyboard shortcuts

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