testutils

package
v1.100.5 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Overview

Package testutils provides test utilities for the CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDummyEVMTar

func CreateDummyEVMTar(require *require.Assertions, binary []byte) []byte

func CreateDummyLuxTar

func CreateDummyLuxTar(require *require.Assertions, binary []byte, version string) []byte

func CreateDummyLuxZip

func CreateDummyLuxZip(require *require.Assertions, binary []byte) []byte

func CreateTarGz

func CreateTarGz(require *require.Assertions, src string, dest string, includeTopLevel bool)

func CreateTestArchivePath

func CreateTestArchivePath(t *testing.T, require *require.Assertions) (string, func(string))

func CreateZip

func CreateZip(require *require.Assertions, src string, dest string)

func GenerateEVMAddrs added in v1.100.5

func GenerateEVMAddrs(count int) ([]crypto.Address, error)

GenerateEVMAddrs returns `count` test 20-byte EVM-runtime account addresses. The internal derivation hashes a fresh secp256k1 pubkey with Keccak256 (that's HOW); the values ARE EVM-runtime account addresses consumed by every EVM-compatible chain (that's WHAT).

func SetupTest

func SetupTest(t *testing.T) *require.Assertions

func SetupTestInTempDir

func SetupTestInTempDir(t *testing.T) *application.Lux

Types

This section is empty.

Jump to

Keyboard shortcuts

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