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

Method processPendingSubtests

lib/internal/test_runner/test.js:954–963  ·  view source on GitHub ↗

* @returns {Promise }

()

Source from the content-addressed store, hash-verified

952 * @returns {Promise<void>}
953 */
954 async processPendingSubtests() {
955 while (this.pendingSubtests.length > 0 && this.hasConcurrency()) {
956 const deferred = this.dequeuePendingSubtest();
957 const test = deferred.test;
958 this.assignReportOrder(test);
959 test.reporter.dequeue(test.nesting, test.loc, test.name, this.reportedType, test.testId, this.testId, test.tags);
960 await test.run();
961 deferred.resolve();
962 }
963 }
964
965 /**
966 * @param {any} subtest

Callers 3

runFunction · 0.80
postRunMethod · 0.80

Calls 6

hasConcurrencyMethod · 0.95
dequeuePendingSubtestMethod · 0.95
assignReportOrderMethod · 0.95
dequeueMethod · 0.80
runMethod · 0.45
resolveMethod · 0.45

Tested by

no test coverage detected