testutil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTestAuthEngine added in v0.2.0

GetTestAuthEngine returns an Auth Engine bound to a test using the Zanzi Engine implementation

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{}

func (*AccountKeeperStub) GetAccount

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

Jump to

Keyboard shortcuts

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