Class: GenMatchTestResult

GenMatchTestResult(caseName, algorithm, runtime, actualnullable, verdict, commonality, mismatchedLeaves, mismatchedInners, unmatchedLeaves, unmatchedInners)

The result for a match test case containing generated process trees.

Constructor

new GenMatchTestResult(caseName, algorithm, runtime, actualnullable, verdict, commonality, mismatchedLeaves, mismatchedInners, unmatchedLeaves, unmatchedInners)

Construct a new GenMatchTestResult instance.
Parameters:
Name Type Attributes Description
caseName String The name of the corresponding diff test case.
algorithm String The name of the algorithm that produced the matching.
runtime Number The time (in ms) it took to produced the result. Null indicates failure.
actual ActualMatching <nullable>
The actual matching produced by the algorithm. Null indicates failure.
verdict String The verdict for this gen match result.
commonality Number The commonality between the expected and actual matching as a comparison value.
mismatchedLeaves Number The number of mismatched leaves.
mismatchedInners Number The number of mismatched inner nodes.
unmatchedLeaves Number The number of leaves that are matched in the expected, but not the actual, matching.
unmatchedInners Number The number of inner nodes that are matched in the expected, but not the actual, matching.
Source:

Classes

GenMatchTestResult

Members

(constant) commonality :Number

The commonality between the expected and actual matching as a comparison value.
Type:
  • Number
Source:

(constant) mismatchedInners :Number

The number of mismatched inner nodes.
Type:
  • Number
Source:

(constant) mismatchedLeaves :Number

The number of mismatched leaves.
Type:
  • Number
Source:

(constant, nullable) runtime :Number

The time (in ms) it took to produced the result. Null indicates failure.
Type:
  • Number
Source:

(constant) unmatchedInners :Number

The number of inner nodes that are matched in the expected, but not the actual, matching.
Type:
  • Number
Source:

(constant) unmatchedLeaves :Number

The number of leaves that are matched in the expected, but not the actual, matching.
Type:
  • Number
Source:

Methods

(static) header() → {Array.<String>}

Source:
Returns:
The header row for a list of gen match test results to use in tables.
Type
Array.<String>

values() → {Array.<String>}

Source:
Returns:
The row of values of this result for use in tables.
Type
Array.<String>