Documentation ¶
Index ¶
- type TestFramework
- func (t *TestFramework) AddBlock(alias string) tipmanager.TipMetadata
- func (t *TestFramework) AddValidators(aliases ...string)
- func (t *TestFramework) Block(alias string) *blocks.Block
- func (t *TestFramework) BlockID(alias string) iotago.BlockID
- func (t *TestFramework) CreateBasicBlock(alias string, parents map[iotago.ParentsType][]string, ...) *blocks.Block
- func (t *TestFramework) CreateValidationBlock(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) RequireValidationTips(aliases ...string)
- func (t *TestFramework) TipMetadata(alias string) tipmanager.TipMetadata
- func (t *TestFramework) Validator(alias string) iotago.AccountID
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) AddValidators ¶
func (t *TestFramework) AddValidators(aliases ...string)
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
Click to show internal directories.
Click to hide internal directories.