utils

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallOrFail

func CallOrFail(runner *runtime.Runner, senderNode runtime.NodeIFace,
	port *runtime.Port, linkIndex int, message runtime.MessageIFace) runtime.MessageIFace

func GetTestingObject

func GetTestingObject() *testing.T

func QueryOrFail

func QueryOrFail(runner *runtime.Runner, senderNode runtime.NodeIFace,
	port *runtime.Port, messageType runtime.MessageType) runtime.MessageIFace

func SendOrFail

func SendOrFail(runner *runtime.Runner, senderNode runtime.NodeIFace,
	port *runtime.Port, message runtime.MessageIFace)

func SetTestingObject

func SetTestingObject(t *testing.T)

func VerifyNodeChain

func VerifyNodeChain(runner *runtime.Runner, objList []*VerificationObj)

Types

type VerificationFunc

type VerificationFunc func(runtime.NodeIFace) bool

type VerificationObj

type VerificationObj struct {
	NType db.NodeType

	VerFunc VerificationFunc
	// contains filtered or unexported fields
}

func NewVO

func NewVO(nType db.NodeType) *VerificationObj

func (*VerificationObj) SetCond

func (vp *VerificationObj) SetCond(vFunc VerificationFunc) *VerificationObj

Jump to

Keyboard shortcuts

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