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

Method dequeuePendingSubtest

lib/internal/test_runner/test.js:941–949  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

939 }
940
941 dequeuePendingSubtest() {
942 if (!this.subtestQueueRandom || this.pendingSubtests.length < 2) {
943 return ArrayPrototypeShift(this.pendingSubtests);
944 }
945
946 // Pick a uniformly random pending sibling when randomization is enabled.
947 const index = MathFloor(this.subtestQueueRandom() * this.pendingSubtests.length);
948 return ArrayPrototypeSplice(this.pendingSubtests, index, 1)[0];
949 }
950
951 /**
952 * @returns {Promise<void>}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected