MCPcopy Index your code
hub / github.com/nodejs/node / addToReport

Method addToReport

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

Source from the content-addressed store, hash-verified

339 }
340 }
341 addToReport(item) {
342 if (kExecutionOrderedEvents.has(item.type)) {
343 this.#handleReportItem(item);
344 return;
345 }
346 this.#accumulateReportItem(item);
347 if (!this.isClearToSend()) {
348 ArrayPrototypePush(this.#reportBuffer, item);
349 return;
350 }
351 this.#drainReportBuffer();
352 this.#handleReportItem(item);
353 }
354 reportStarted() {}
355 drain() {
356 this.#drainRawBuffer();

Callers 3

#drainRawBufferMethod · 0.95
#processRawBufferMethod · 0.95
runTestFileFunction · 0.80

Calls 5

#handleReportItemMethod · 0.95
#accumulateReportItemMethod · 0.95
#drainReportBufferMethod · 0.95
isClearToSendMethod · 0.80
hasMethod · 0.65

Tested by

no test coverage detected