tests

package
v1.0.0-alpha.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestFramework

type TestFramework struct {
	Instance *tipmanagerv1.TipManager

	API iotago.API
	// contains filtered or unexported fields
}

func NewTestFramework

func NewTestFramework(t *testing.T) *TestFramework

func (*TestFramework) AddBlock

func (t *TestFramework) AddBlock(alias string) tipmanager.TipMetadata

func (*TestFramework) AddValidators

func (t *TestFramework) AddValidators(aliases ...string)

func (*TestFramework) Block

func (t *TestFramework) Block(alias string) *blocks.Block

func (*TestFramework) BlockID

func (t *TestFramework) BlockID(alias string) iotago.BlockID

func (*TestFramework) CreateBasicBlock

func (t *TestFramework) CreateBasicBlock(alias string, parents map[iotago.ParentsType][]string, optBlockBuilder ...func(*builder.BasicBlockBuilder)) *blocks.Block

func (*TestFramework) CreateValidationBlock

func (t *TestFramework) CreateValidationBlock(alias string, parents map[iotago.ParentsType][]string, optBlockBuilder ...func(blockBuilder *builder.ValidationBlockBuilder)) *blocks.Block

func (*TestFramework) RequireLivenessThresholdReached

func (t *TestFramework) RequireLivenessThresholdReached(alias string, expected bool)

func (*TestFramework) RequireStrongTips

func (t *TestFramework) RequireStrongTips(aliases ...string)

func (*TestFramework) RequireValidationTips

func (t *TestFramework) RequireValidationTips(aliases ...string)

func (*TestFramework) TipMetadata

func (t *TestFramework) TipMetadata(alias string) tipmanager.TipMetadata

func (*TestFramework) Validator

func (t *TestFramework) Validator(alias string) iotago.AccountID

Jump to

Keyboard shortcuts

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