Node
Node
When traversing the tables we first build a graph representing the data generation order. The graph is build out of this nodes
Kind: global class
- Node
- .todosGenerator ⇒
array - ._buildTodos()
- .createReferenceInstanceId(referenceCmd) ⇒
string - .isSelfReference(referenceCmd) ⇒
boolean - .clone()
- .getCloneFor(nodeToClone) ⇒
object
- .todosGenerator ⇒
node.todosGenerator ⇒ array
returns an array with all the todos. It will crawl all the referenced nodes and adds the todos of them
Kind: instance property of Node
Returns: array - todos An array of todos
node._buildTodos()
Build a local variable with all the todos
Kind: instance method of Node
node.createReferenceInstanceId(referenceCmd) ⇒ string
Creates the instanceId for a reference. The instanceId is unique for each target object. If two reference points to the same intance of a target the same instanceId is used. If no suffix is given
Kind: instance method of Node
Returns: string - instanceId The reference instance id
| Param | Type | Description |
|---|---|---|
| referenceCmd | object | The reference command |
node.isSelfReference(referenceCmd) ⇒ boolean
Checks if the given reference is a self reference.
Rules: No instanceIdSuffix The test case name is same as node test case name The TableName is same as node table name
Kind: instance method of Node
Returns: boolean - status True, if the reference is a self reference
| Param | Type | Description |
|---|---|---|
| referenceCmd | object | The reference command |
node.clone()
Clones the node
Kind: instance method of Node
node.getCloneFor(nodeToClone) ⇒ object
Clones a node for this parent. If this node where already cloned, the previous clone will be returned.
Kind: instance method of Node
Returns: object - clone The clone of the node
| Param | Type | Description |
|---|---|---|
| nodeToClone | object | The node to be cloned |