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

Function setupCodeCoverage

lib/internal/process/pre_execution.js:465–476  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

463}
464
465function setupCodeCoverage() {
466 // Resolve the coverage directory to an absolute path, and
467 // overwrite process.env so that the original path gets passed
468 // to child processes even when they switch cwd. Don't do anything if the
469 // --experimental-test-coverage flag is present, as the test runner will
470 // handle coverage.
471 if (process.env.NODE_V8_COVERAGE &&
472 !getOptionValue('--experimental-test-coverage')) {
473 process.env.NODE_V8_COVERAGE =
474 setupCoverageHooks(process.env.NODE_V8_COVERAGE);
475 }
476}
477
478function setupStacktracePrinterOnSigint() {
479 if (!getOptionValue('--trace-sigint')) {

Callers 1

prepareExecutionFunction · 0.85

Calls 2

getOptionValueFunction · 0.85
setupCoverageHooksFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…