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

Function run

lib/internal/test_runner/harness.js:391–399  ·  view source on GitHub ↗
(name, options, fn, overrides)

Source from the content-addressed store, hash-verified

389
390function runInParentContext(Factory) {
391 function run(name, options, fn, overrides) {
392 const parent = testResources.get(executionAsyncId()) || lazyBootstrapRoot();
393 const subtest = parent.createSubtest(Factory, name, options, fn, overrides);
394 if (parent instanceof Suite) {
395 return PromiseResolve();
396 }
397
398 return startSubtestAfterBootstrap(subtest);
399 }
400
401 const test = (name, options, fn) => {
402 const overrides = {

Callers 2

testFunction · 0.70
runInParentContextFunction · 0.70

Calls 5

executionAsyncIdFunction · 0.85
lazyBootstrapRootFunction · 0.85
createSubtestMethod · 0.80
getMethod · 0.65

Tested by 1

testFunction · 0.56