utilstest

package
v0.15.4-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: GPL-3.0, LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestContext added in v0.15.4

func NewTestContext(t *testing.T) (context.Context, context.CancelFunc)

func SleepWithContext added in v0.15.4

func SleepWithContext(ctx context.Context, d time.Duration)

func WaitGroupWithContext added in v0.15.4

func WaitGroupWithContext(t *testing.T, ctx context.Context, wg *sync.WaitGroup)

Types

type Key

type Key struct {
	Address    common.Address
	PrivateKey *ecdsa.PrivateKey
}

Key contains an ecdsa private key field as well as an address field obtained from converting the ecdsa public key.

func NewKey

func NewKey(t *testing.T) *Key

NewKey generates a new key pair and returns a pointer to a Key.

Jump to

Keyboard shortcuts

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