Documentation ¶
Index ¶
- type TestFramework
- func (t *TestFramework) AddBlock(alias string) tipmanager.TipMetadata
- func (t *TestFramework) Block(alias string) *blocks.Block
- func (t *TestFramework) BlockID(alias string) iotago.BlockID
- func (t *TestFramework) CreateBlock(alias string, parents map[iotago.ParentsType][]string, ...) *blocks.Block
- func (t *TestFramework) RequireLivenessThresholdReached(alias string, expected bool)
- func (t *TestFramework) RequireStrongTips(aliases ...string)
- func (t *TestFramework) TipMetadata(alias string) tipmanager.TipMetadata
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) 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
Click to show internal directories.
Click to hide internal directories.