Evaluator

Evaluator

The evaluator class encapsulates logic to determine if a particular record passed its tests

Constructor

new Evaluator()

Source:

Methods

(static) evaluate(record, result, response) → {Result}

Runs through all the fields defined in the CSV record and compares them to actual

Source:
Parameters:
Name Type Description
record Record
result Result
response Object
Returns:
Type:
Result

(static) evaluateExpectedField(field, record, response) → {Result}

Source:
Parameters:
Name Type Description
field string
record Record
response any
Returns:
Type:
Result

(static) jsonQuery(field, response) → {any}

Source:
Parameters:
Name Type Description
field string
response any
Returns:
Type:
any