tap-parser
Advanced tools
Comparing version 15.2.1 to 15.3.0
@@ -43,3 +43,2 @@ /// <reference types="node" /> | ||
buffered: boolean; | ||
closingTestPoint: Result | null; | ||
comments: string[]; | ||
@@ -76,2 +75,4 @@ count: number; | ||
todo: number; | ||
get closingTestPoint(): Result | null; | ||
set closingTestPoint(res: Result | null); | ||
get readable(): false; | ||
@@ -78,0 +79,0 @@ get writable(): true; |
@@ -45,3 +45,3 @@ "use strict"; | ||
buffered; | ||
closingTestPoint = null; | ||
#closingTestPoint = null; | ||
comments = []; | ||
@@ -74,2 +74,10 @@ count = 0; | ||
todo = 0; | ||
get closingTestPoint() { | ||
return this.#closingTestPoint; | ||
} | ||
set closingTestPoint(res) { | ||
this.#closingTestPoint = res; | ||
if (res) | ||
res.closingTestPoint = true; | ||
} | ||
/* c8 ignore start */ | ||
@@ -479,4 +487,3 @@ get readable() { | ||
if (this.#child && (!this.#bailingOut || this.#child.count)) { | ||
if (this.#child.closingTestPoint) | ||
this.#child.time = this.#child.closingTestPoint.time || null; | ||
this.#child.time = this.#child.closingTestPoint?.time || null; | ||
this.#previousChild = this.#child; | ||
@@ -497,9 +504,9 @@ this.#child.end(); | ||
this.count++; | ||
const { skip, todo } = res; | ||
if (skip) | ||
this.skips.push({ ...res, skip }); | ||
if (todo) | ||
this.todos.push({ ...res, todo }); | ||
if (res.ok) { | ||
this.pass++; | ||
const { skip, todo } = res; | ||
if (skip) | ||
this.skips.push({ ...res, skip }); | ||
if (todo) | ||
this.todos.push({ ...res, todo }); | ||
if (!skip && !todo && this.passes) | ||
@@ -506,0 +513,0 @@ this.passes.push(res); |
@@ -30,4 +30,5 @@ import { Parser } from './index.js'; | ||
fullname: string; | ||
closingTestPoint: boolean; | ||
constructor(parsed: string[], parser: Parser); | ||
} | ||
//# sourceMappingURL=result.d.ts.map |
@@ -22,2 +22,3 @@ "use strict"; | ||
fullname = ''; | ||
closingTestPoint = false; | ||
constructor(parsed, parser) { | ||
@@ -24,0 +25,0 @@ const ok = !parsed[1]; |
@@ -43,3 +43,2 @@ /// <reference types="node" resolution-mode="require"/> | ||
buffered: boolean; | ||
closingTestPoint: Result | null; | ||
comments: string[]; | ||
@@ -76,2 +75,4 @@ count: number; | ||
todo: number; | ||
get closingTestPoint(): Result | null; | ||
set closingTestPoint(res: Result | null); | ||
get readable(): false; | ||
@@ -78,0 +79,0 @@ get writable(): true; |
@@ -33,3 +33,3 @@ import { EventEmitter } from 'events'; | ||
buffered; | ||
closingTestPoint = null; | ||
#closingTestPoint = null; | ||
comments = []; | ||
@@ -62,2 +62,10 @@ count = 0; | ||
todo = 0; | ||
get closingTestPoint() { | ||
return this.#closingTestPoint; | ||
} | ||
set closingTestPoint(res) { | ||
this.#closingTestPoint = res; | ||
if (res) | ||
res.closingTestPoint = true; | ||
} | ||
/* c8 ignore start */ | ||
@@ -467,4 +475,3 @@ get readable() { | ||
if (this.#child && (!this.#bailingOut || this.#child.count)) { | ||
if (this.#child.closingTestPoint) | ||
this.#child.time = this.#child.closingTestPoint.time || null; | ||
this.#child.time = this.#child.closingTestPoint?.time || null; | ||
this.#previousChild = this.#child; | ||
@@ -485,9 +492,9 @@ this.#child.end(); | ||
this.count++; | ||
const { skip, todo } = res; | ||
if (skip) | ||
this.skips.push({ ...res, skip }); | ||
if (todo) | ||
this.todos.push({ ...res, todo }); | ||
if (res.ok) { | ||
this.pass++; | ||
const { skip, todo } = res; | ||
if (skip) | ||
this.skips.push({ ...res, skip }); | ||
if (todo) | ||
this.todos.push({ ...res, todo }); | ||
if (!skip && !todo && this.passes) | ||
@@ -494,0 +501,0 @@ this.passes.push(res); |
@@ -30,4 +30,5 @@ import { Parser } from './index.js'; | ||
fullname: string; | ||
closingTestPoint: boolean; | ||
constructor(parsed: string[], parser: Parser); | ||
} | ||
//# sourceMappingURL=result.d.ts.map |
@@ -19,2 +19,3 @@ import { OPEN_BRACE_EOL } from './brace-patterns.js'; | ||
fullname = ''; | ||
closingTestPoint = false; | ||
constructor(parsed, parser) { | ||
@@ -21,0 +22,0 @@ const ok = !parsed[1]; |
{ | ||
"name": "tap-parser", | ||
"version": "15.2.1", | ||
"version": "15.3.0", | ||
"description": "parse the test anything protocol", | ||
@@ -5,0 +5,0 @@ "tshy": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
313713
3343