tests

package
v1.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 12 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(test *testing.T) *TestFramework

func (*TestFramework) AddBlock

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

func (*TestFramework) Block

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

func (*TestFramework) BlockID

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

func (*TestFramework) CreateBlock

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

func (*TestFramework) RequireLivenessThresholdReached

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

func (*TestFramework) RequireStrongTips

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

func (*TestFramework) TipMetadata

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

Jump to

Keyboard shortcuts

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