tap-parser
Advanced tools
Comparing version 6.0.0 to 6.0.1
13
index.js
@@ -371,2 +371,3 @@ 'use strict' | ||
if (this.syntheticBailout && this.level === 0) { | ||
this.syntheticBailout = false | ||
let reason = this.bailedOut | ||
@@ -377,3 +378,2 @@ if (reason === true) | ||
reason = ' ' + reason | ||
// reason += ' Parser(384 l=' + this.level + ')' | ||
this.emit('line', 'Bail out!' + reason + '\n') | ||
@@ -394,3 +394,7 @@ } | ||
this.syntheticPlan = true | ||
this.plan(1, 0, 'no tests found', '1..0 # no tests found\n') | ||
if (this.buffered) { | ||
this.planStart = 1 | ||
this.planEnd = 0 | ||
} else | ||
this.plan(1, 0, 'no tests found', '1..0 # no tests found\n') | ||
skipAll = true | ||
@@ -477,3 +481,2 @@ } else { | ||
bailout (reason, synthetic) { | ||
// console.trace('bailout') | ||
this.syntheticBailout = synthetic | ||
@@ -500,3 +503,2 @@ | ||
line += ' ' + reason | ||
// reason += ' Parser(524 s=' + synthetic + ')' | ||
this.emit('line', line + '\n') | ||
@@ -519,3 +521,3 @@ } | ||
endChild () { | ||
if (this.child) { | ||
if (this.child && (!this.bailingOut || this.child.count)) { | ||
this.child.end() | ||
@@ -565,3 +567,2 @@ this.child = null | ||
const bailName = res.name ? ' # ' + res.name : '' | ||
// bailName += ' Parser(586)' | ||
p.parse(ind + 'Bail out!' + bailName + '\n') | ||
@@ -568,0 +569,0 @@ } |
{ | ||
"name": "tap-parser", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "parse the test anything protocol", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42621
965