enterBranch

fun <T> enterBranch(branchTitle: String, branch: () -> ExpectationResult<T>): ExpectationResult<T>

If debugging is enabled, execute a set of expectations "within" a special node. Otherwise, directly executed the provided branch.

This can be used to provide additional context for several "execution runs" that may occur within an expectation. For example, this is used in either { ... } 's expectation to identify each branch.