Constructor
new DiffAdapter(path, displayName)
Construct a new DiffAdapter instance.
Parameters:
Name | Type | Description |
---|---|---|
path |
String | The path to the directory containing the XML diff algorithm and the run script |
displayName |
String | The name to display for the XML difference algorithm this adapter represents. |
- Source:
Classes
Methods
evalCase(testCase) → {DiffTestResult}
Parameters:
Name | Type | Description |
---|---|---|
testCase |
DiffTestCase | The diff test case to run. |
- Source:
Returns:
The result.
- Type
- DiffTestResult
parseOutput(output)
Parse the output produced by this XML difference algorithm to obtain the
types and amount of edit operations contained in the edit script as well
as its overall cost.
Parameters:
Name | Type | Description |
---|---|---|
output |
String | The raw output. |
- Source:
Returns:
run(oldTree, newTree) → {Object}
Run this XML difference algorithm with the provided process trees.
Parameters:
Name | Type | Description |
---|---|---|
oldTree |
Node | The root of the old (original) process tree. |
newTree |
Node | The root of the new (changed) process tree. |
Returns:
The raw output and elapsed
time.
- Type
- Object