Documentation
¶
Index ¶
- func CreateBlockCertificationRequest(t *testing.T, ir *types.InputRecord, sysID types.SystemID, node *TestNode) *certification.BlockCertificationRequest
- func MockAwaitMessage[T any](t *testing.T, net *testnetwork.MockNet, msgType string) T
- func MockNetAwaitMultiple[T any](t *testing.T, net *testnetwork.MockNet, msgType string, nof int) []T
- func MockValidatorNetReceives(t *testing.T, net *testnetwork.MockNet, id peer.ID, msgType string, msg any)
- type TestNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBlockCertificationRequest ¶
func CreateBlockCertificationRequest(t *testing.T, ir *types.InputRecord, sysID types.SystemID, node *TestNode) *certification.BlockCertificationRequest
func MockAwaitMessage ¶
func MockNetAwaitMultiple ¶
Types ¶
type TestNode ¶
type TestNode struct { Signer crypto.Signer Verifier crypto.Verifier PeerConf *network.PeerConfiguration }
func CreatePartitionNodesAndPartitionRecord ¶
func CreatePartitionNodesAndPartitionRecord(t *testing.T, ir *types.InputRecord, systemID types.SystemID, nrOfValidators int) (partitionNodes []*TestNode, record *genesis.PartitionRecord)
func NewTestNode ¶
Click to show internal directories.
Click to hide internal directories.