test

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Overview

Package test contains utilities for running client tests for Ethereum.

Index

Constants

View Source
const (
	// DefaultTimeout is the default timeout for client tests.
	DefaultTimeout = 20 * time.Second
	// BlockInterval is the default block interval for the simulated chain.
	BlockInterval = 200 * time.Millisecond
)

Variables

This section is empty.

Functions

func EtherToWei

func EtherToWei(eth float64) *big.Int

EtherToWei converts eth to wei.

func MakeRoleSetups

func MakeRoleSetups(rng *rand.Rand, s *ethctest.Setup, names []string) []clienttest.RoleSetup

MakeRoleSetups creates a two party client test setup with the provided names.

func SetupMultiLedgerTest

func SetupMultiLedgerTest(t *testing.T, testDuration time.Duration) ctest.MultiLedgerSetup

SetupMultiLedgerTest creates a multi-ledger test setup.

Types

This section is empty.

Jump to

Keyboard shortcuts

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