MCPcopy Index your code
hub / github.com/nodejs/node / #accumulateReportItem

Method #accumulateReportItem

lib/internal/test_runner/runner.js:326–334  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

324 this.reporter[kEmitMessage](item.type, item.data);
325 }
326 #accumulateReportItem(item) {
327 if (item.type !== 'test:pass' && item.type !== 'test:fail') {
328 return;
329 }
330 this.#reportedChildren++;
331 if (item.data.nesting === 0 && item.type === 'test:fail') {
332 this.failedSubtests = true;
333 }
334 }
335 #drainReportBuffer() {
336 if (this.#reportBuffer.length > 0) {
337 ArrayPrototypeForEach(this.#reportBuffer, (ast) => this.#handleReportItem(ast));

Callers 1

addToReportMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected