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

Function getExecutedInternalOrder

test/parallel/test-runner-run.mjs:411–429  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

409 }
410
411 async function getExecutedInternalOrder(options = {}) {
412 const stream = run({
413 files: [internalOrderTestFile],
414 concurrency: false,
415 ...options,
416 });
417 const executionOrder = [];
418
419 stream.on('test:fail', common.mustNotCall());
420 stream.on('test:pass', (passedTest) => {
421 if (passedTest.file === internalOrderTestFile && passedTest.name.startsWith('internal ')) {
422 executionOrder.push(passedTest.name.slice('internal '.length));
423 }
424 });
425 // eslint-disable-next-line no-unused-vars
426 for await (const _ of stream) ;
427
428 return executionOrder;
429 }
430
431 describe('sharding', () => {
432

Callers 1

Calls 4

runFunction · 0.70
sliceMethod · 0.65
onMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…