SubgraphAssertionsBuilder

Builder class for constructing stage-level assertions. This includes setup for nodes, edges, reachability assertions, and context-related mock setups.

Constructors

Link copied to clipboard
constructor(subgraphRef: NodeReference.SubgraphNode<Input, Output>)

Types

Link copied to clipboard

A builder class used to facilitate the creation and management of edge assertions in a stage context. Delegates functionality to a local agent stage context mock builder for shared behaviors.

Link copied to clipboard

A builder class for constructing and managing assertions related to the outputs of nodes within a stage. This class provides functionality to define and evaluate assertions for node outputs in a local agent's stage.

Functions

Link copied to clipboard

Asserts the edges in the context of a graph by applying a set of edge assertions built using the provided block.

Link copied to clipboard

Asserts the existence of a node by its name within the stage structure and returns a reference to it. If the node with the given name has not been asserted previously, it creates a new NamedNode reference and records it in the nodes map for tracking.

Link copied to clipboard

Asserts the state of nodes in the stage using a provided block to define the desired assertions. The block operates on a NodeOutputAssertionsBuilder to specify expectations for node inputs and outputs.

Link copied to clipboard
fun assertReachable(from: NodeReference<*, *>, to: NodeReference<*, *>)

Asserts that there is a reachable path between two specified nodes within a stage.

Link copied to clipboard

Asserts the existence of a subgraph by its name

Link copied to clipboard

Retrieves a reference to the finish node of the current stage in the graph.

Link copied to clipboard

Retrieves the starting node reference of the stage.

Link copied to clipboard