Module test_utils

Source

Structs§

CommActorRoutingTree
Captures the logical structure of a CommActor multicast operation.
ForwardMessage
Represents a routing step in the collect_commactor_routing_tree simulation.
RoutedMessage
Message type used in the collect_routed_paths mesh routing simulation.
RoutedPathTree

Functions§

collect_commactor_routing_tree
collect_commactor_routing_tree simulates how messages propagate through a mesh of CommActors during multicast, reconstructing the full logical routing tree.
collect_routed_nodes
Simulates routing from the origin and returns the set of destination nodes (as flat indices) selected by the Selection.
collect_routed_paths
Simulates routing from the origin through a slice using a Selection, collecting all delivery destinations along with their routing paths. Each returned entry is a tuple (dst, path), where dst is the flat index of a delivery node, and path is the list of flat indices representing the route taken from the origin to that node. Routing begins at [0, 0, ..., 0] and proceeds dimension-by-dimension. At each hop, next_steps determines the next set of forwarding frames. A node is considered a delivery target if:
parse
Parse an input string to a selection.