foldPlan :: forall r i t b. (Entry b t -> i) -> (String -> i) -> (Entry b (Plan b t) -> i) -> (Array i -> r) -> Plan b t -> r
PlanItem constructor and sequences actions within a
This function can be used to inspect the plan, or build derivatives of it, or to define an interpreter for the plan that will actually run the tests within.
- The first function handles tests.
- The second function handles skipped tests.
- The third function handles groups of tests.
- The fourth function deals with sequencing the resulting values from the previous handlers.
This fold only applies one layer at a time, so when building an interpreter it will need to be called recursively within the group handler.