Documentation ¶
Index ¶
- type ConflictTransfer
- type EthManager
- func (m *EthManager) AddTestCase(tc ...TestCase)
- func (m *EthManager) Configure(cfg *conf.EthCaseConf, evmCfg *evm.GethConfig)
- func (m *EthManager) GetWalletManager() *pkg.WalletManager
- func (m *EthManager) PreCreateWallets(walletCount int, initCount uint64) ([]*pkg.EthWallet, error)
- func (m *EthManager) Run(ctx context.Context) error
- type RandomBenchmarkTest
- type RandomTransferTestCase
- type StateRootAssertTestCase
- type StateRootTestCase
- type StateRootTestResult
- type TestCase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConflictTransfer ¶
type ConflictTransfer struct { CaseName string // contains filtered or unexported fields }
func NewConflictTest ¶
func NewConflictTest(name string, count int, initial uint64, steps int) *ConflictTransfer
func (*ConflictTransfer) Name ¶
func (c *ConflictTransfer) Name() string
func (*ConflictTransfer) Run ¶
func (c *ConflictTransfer) Run(ctx context.Context, m *pkg.WalletManager) error
type EthManager ¶
type EthManager struct {
// contains filtered or unexported fields
}
func (*EthManager) AddTestCase ¶
func (m *EthManager) AddTestCase(tc ...TestCase)
func (*EthManager) Configure ¶
func (m *EthManager) Configure(cfg *conf.EthCaseConf, evmCfg *evm.GethConfig)
func (*EthManager) GetWalletManager ¶
func (m *EthManager) GetWalletManager() *pkg.WalletManager
func (*EthManager) PreCreateWallets ¶
type RandomBenchmarkTest ¶
type RandomBenchmarkTest struct { CaseName string // contains filtered or unexported fields }
func NewRandomBenchmarkTest ¶
func (*RandomBenchmarkTest) Name ¶
func (tc *RandomBenchmarkTest) Name() string
func (*RandomBenchmarkTest) Run ¶
func (tc *RandomBenchmarkTest) Run(ctx context.Context, m *pkg.WalletManager) error
type RandomTransferTestCase ¶
type RandomTransferTestCase struct { CaseName string // contains filtered or unexported fields }
func NewRandomTest ¶
func NewRandomTest(name string, count int, initial uint64, steps int) *RandomTransferTestCase
func (*RandomTransferTestCase) Name ¶
func (tc *RandomTransferTestCase) Name() string
func (*RandomTransferTestCase) Run ¶
func (tc *RandomTransferTestCase) Run(ctx context.Context, m *pkg.WalletManager) error
type StateRootAssertTestCase ¶
type StateRootAssertTestCase struct {
// contains filtered or unexported fields
}
func NewStateRootAssertTestCase ¶
func NewStateRootAssertTestCase(content []byte, initial uint64) *StateRootAssertTestCase
func (*StateRootAssertTestCase) Name ¶
func (s *StateRootAssertTestCase) Name() string
func (*StateRootAssertTestCase) Run ¶
func (s *StateRootAssertTestCase) Run(ctx context.Context, m *pkg.WalletManager) error
type StateRootTestCase ¶
type StateRootTestCase struct {
*RandomTransferTestCase
}
func NewStateRootTestCase ¶
func NewStateRootTestCase(name string, count int, initial uint64, steps int) *StateRootTestCase
func (*StateRootTestCase) Name ¶
func (st *StateRootTestCase) Name() string
func (*StateRootTestCase) Run ¶
func (st *StateRootTestCase) Run(ctx context.Context, m *pkg.WalletManager) error
type StateRootTestResult ¶
type StateRootTestResult struct { Wallets []*pkg.CaseEthWallet `json:"wallets"` TransferCase *pkg.TransferCase `json:"transferCase"` StateRoot yucommon.Hash `json:"stateRoot"` }
Click to show internal directories.
Click to hide internal directories.