BranchSeeker

A utility for reporting the execution tree of a parsing run, and outputting it in a human-readable format.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
data class Node(val parent: BranchSeeker.Node?, var title: String, var status: BranchSeeker.Status? = null, var message: String? = null, val nodes: MutableList<BranchSeeker.Node> = mutableListOf(), val storedData: MutableMap<NodeParameterKey<*, *>, Any?> = mutableMapOf())

A node within the execution tree. Each node represents an expectation that was executed.

Link copied to clipboard

Status for a node in the BranchSeeker tree.

Functions

Link copied to clipboard
fun stepIn(nodeTitle: String)

Step into a new node.

Link copied to clipboard
fun stepOut(status: BranchSeeker.Status, message: String, storedData: Map<NodeParameterKey<*, *>, Any?>)

Steps out of the current node.

Link copied to clipboard

Transforms this branch seeker into a human-readable YAML representation as a string.

Link copied to clipboard
fun updateRoot(status: BranchSeeker.Status, message: String, storedData: Map<NodeParameterKey<*, *>, Any?>)

Update the root node with the given information.