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

Function isErrorLine

validator/js/nodejs/index_test.js:96–98  ·  view source on GitHub ↗

* Given a line read from a test .out file, returns true iff the line is an * actual error, instead of the input file inlined. * @param {string} line * @return {boolean}

(line)

Source from the content-addressed store, hash-verified

94 * @return {boolean}
95 */
96function isErrorLine(line) {
97 return !(line.startsWith('|') || line.startsWith('>>'));
98}
99
100it('rejects a specific file that is known to have errors', function(done) {
101 // Note: This will use the validator that was built with build.py.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected