MCPcopy Create free account
hub / github.com/ampproject/amphtml / ValidationResult

Function ValidationResult

validator/js/nodejs/index.js:132–140  ·  view source on GitHub ↗

* ValidationResult is the record computed by the validator for each * document. It contains an overall status (PASS/FAIL) and the list of * errors, if any. This class corresponds to the ValidationResult * message in validator.proto in this directory. * @export * @constructor

()

Source from the content-addressed store, hash-verified

130 * @constructor
131 */
132function ValidationResult() {
133 /**
134 * Possible values are 'UNKNOWN', 'PASS', and 'FAIL'.
135 * @type {string}
136 */
137 this.status = 'UNKNOWN';
138 /** @type {!Array<!ValidationError>} */
139 this.errors = [];
140}
141
142/**
143 * Each validation error describes a specific problem in a validated

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected