()
| 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>} |
no outgoing calls
no test coverage detected