Class: MergeTestCase

MergeTestCase(name, base, branch1, branch2, expected)

Represents a test case for the evaluation of merging algorithms.

Constructor

new MergeTestCase(name, base, branch1, branch2, expected)

Construct a new MergeTestCase instance.
Parameters:
Name Type Description
name String The name of the test case
base Node The root of the base process tree
branch1 Node The root of the first branch process tree#
branch2 Node The root of the second branch process tree
expected ExpectedMerge The expected merge results
Source:

Classes

MergeTestCase

Members

(constant) base :Node

The root the base process tree.
Type:
Source:

(constant) branch1 :Node

The root the first branch process tree.
Type:
Source:

(constant) branch2 :Node

The root the second branch process tree.
Type:
Source:

Methods

(static) from(testCaseDir) → {MergeTestCase}

Construct a merge test case from a test case directory.
Parameters:
Name Type Description
testCaseDir String An absolute or relative path to the test case directory
Source:
Returns:
The constructed merge test case
Type
MergeTestCase

complete(algorithm, actualnullable, verdict) → {MergeTestResult}

Complete this test case.
Parameters:
Name Type Attributes Default Description
algorithm String The algorithm that ran this case
actual ActualMerge <nullable>
null The merge produced by the algorithm, null indicates failure
verdict String The verdict for this test case and algorithm
Source:
Returns:
The corresponding result
Type
MergeTestResult