Skip to content

0009 specification traverser

nehashri edited this page Sep 25, 2017 · 1 revision

9. Specification Traverser

This ADR has been recorded retrospectively.

Status

Superceded by 9. Specification Traverser

Context

Specification and scenario has a method to traverse through all the items in it. It has an Specification traverser and a scenario traverser. The state of the iterator is lost when when we switch between specification and scenario traverser.

Decision

Have specification traverse over an item queue. The item queue provided will have a flattened list of all items under specification and its children. The flattening of list will be done using depth first approach.
The specification traverser method will take a queue, iterate and process the items. The queue can provide the state the traverser is in. Instead of maintaining two traverser interfaces, create an interface to process items.

Consequences