testing

package
v0.0.0-...-abe358f Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllRunners

func GetAllRunners() map[string]TestRunner

GetAllRunners returns all registered runners

func ListAvailableTests

func ListAvailableTests()

ListAvailableTests prints all available test modes

func Register

func Register(name string, runner TestRunner)

Register registers a test runner

func TestAllClientsSoftLimitImpl

func TestAllClientsSoftLimitImpl(cfg *config.Config) error

TestAllClientsSoftLimitImpl implements the test for all clients

func TestNewPooledTransactionHashesSoftLimitWithNonceDetailed

func TestNewPooledTransactionHashesSoftLimitWithNonceDetailed(cfg *config.Config, nodeIndex int, hashCount int, startNonce uint64) (int, string, error)

TestNewPooledTransactionHashesSoftLimitWithNonceDetailed tests with custom starting nonce and returns detailed results

func TestSoftLimitForReportImpl

func TestSoftLimitForReportImpl(cfg *config.Config) error

TestSoftLimitForReportImpl runs soft limit tests for all clients and generates a concise report

Types

type BlobMultiNodeTest

type BlobMultiNodeTest struct{}

BlobMultiNodeTest implements multi-node blob transaction testing

func (*BlobMultiNodeTest) Description

func (t *BlobMultiNodeTest) Description() string

func (*BlobMultiNodeTest) Name

func (t *BlobMultiNodeTest) Name() string

func (*BlobMultiNodeTest) Run

func (t *BlobMultiNodeTest) Run(cfg *config.Config) error

type BlobSingleNodeTest

type BlobSingleNodeTest struct{}

BlobSingleNodeTest implements single-node blob transaction testing

func (*BlobSingleNodeTest) Description

func (t *BlobSingleNodeTest) Description() string

func (*BlobSingleNodeTest) Name

func (t *BlobSingleNodeTest) Name() string

func (*BlobSingleNodeTest) Run

func (t *BlobSingleNodeTest) Run(cfg *config.Config) error

type LargeTransactionsTest

type LargeTransactionsTest struct{}

LargeTransactionsTest sends large batch of transactions

func (*LargeTransactionsTest) Description

func (t *LargeTransactionsTest) Description() string

func (*LargeTransactionsTest) Name

func (t *LargeTransactionsTest) Name() string

func (*LargeTransactionsTest) Run

type MultiNodeTest

type MultiNodeTest struct{}

MultiNodeTest implements multi-node testing

func (*MultiNodeTest) Description

func (t *MultiNodeTest) Description() string

func (*MultiNodeTest) Name

func (t *MultiNodeTest) Name() string

func (*MultiNodeTest) Run

func (t *MultiNodeTest) Run(cfg *config.Config) error

type OneTransactionTest

type OneTransactionTest struct{}

OneTransactionTest sends a single transaction

func (*OneTransactionTest) Description

func (t *OneTransactionTest) Description() string

func (*OneTransactionTest) Name

func (t *OneTransactionTest) Name() string

func (*OneTransactionTest) Run

func (t *OneTransactionTest) Run(cfg *config.Config) error

type SingleNodeTest

type SingleNodeTest struct{}

SingleNodeTest implements single node testing

func (*SingleNodeTest) Description

func (t *SingleNodeTest) Description() string

func (*SingleNodeTest) Name

func (t *SingleNodeTest) Name() string

func (*SingleNodeTest) Run

func (t *SingleNodeTest) Run(cfg *config.Config) error

type SoftLimitReportTest

type SoftLimitReportTest struct{}

SoftLimitReportTest generates soft limit test report

func (*SoftLimitReportTest) Description

func (t *SoftLimitReportTest) Description() string

func (*SoftLimitReportTest) Name

func (t *SoftLimitReportTest) Name() string

func (*SoftLimitReportTest) Run

func (t *SoftLimitReportTest) Run(cfg *config.Config) error

type SoftLimitSingleTest

type SoftLimitSingleTest struct{}

SoftLimitSingleTest tests single client's soft limit

func (*SoftLimitSingleTest) Description

func (t *SoftLimitSingleTest) Description() string

func (*SoftLimitSingleTest) Name

func (t *SoftLimitSingleTest) Name() string

func (*SoftLimitSingleTest) Run

func (t *SoftLimitSingleTest) Run(cfg *config.Config) error

type SoftLimitTest

type SoftLimitTest struct{}

SoftLimitTest tests all clients' soft limit implementation

func (*SoftLimitTest) Description

func (t *SoftLimitTest) Description() string

func (*SoftLimitTest) Name

func (t *SoftLimitTest) Name() string

func (*SoftLimitTest) Run

func (t *SoftLimitTest) Run(cfg *config.Config) error

type TestRunner

type TestRunner interface {
	// Name returns the test mode name
	Name() string

	// Description returns a brief description of the test
	Description() string

	// Run executes the test with the given configuration
	Run(cfg *config.Config) error
}

TestRunner defines the interface for all test modes

func GetRunner

func GetRunner(name string) (TestRunner, bool)

GetRunner returns a test runner by name

Jump to

Keyboard shortcuts

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