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

Function setup

benchmark/test_runner/run-single-test-file.js:22–26  ·  view source on GitHub ↗
(numberOfTestFiles)

Source from the content-addressed store, hash-verified

20}
21
22function setup(numberOfTestFiles) {
23 tmpdir.refresh();
24 const dirPath = getTestDirPath(numberOfTestFiles);
25 makeTestDirWithFiles(dirPath, numberOfTestFiles);
26}
27
28/**
29 * This benchmark evaluates the overhead of running a single test file under different

Callers 1

mainFunction · 0.70

Calls 3

getTestDirPathFunction · 0.85
makeTestDirWithFilesFunction · 0.85
refreshMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…