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

Function setup

test/parallel/test-fs-realpath.js:520–532  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

518 }
519
520 function setup() {
521 cleanup();
522 ['',
523 '/a',
524 '/a/b',
525 '/a/b/c',
526 ].forEach(function(folder) {
527 console.log(`mkdir ${root}${folder}`);
528 fs.mkdirSync(root + folder, 0o700);
529 });
530 fs.writeFileSync(`${root}/a/b/c/x.txt`, 'foo');
531 fs.symlinkSync(`${root}/a/b`, `${root}/a/link`, type);
532 }
533 setup();
534 const linkPath = `${root}/a/link/c/x.txt`;
535 const expectPath = `${root}/a/b/c/x.txt`;

Callers 1

test_abs_with_kidsFunction · 0.70

Calls 6

cleanupFunction · 0.70
forEachMethod · 0.65
logMethod · 0.45
mkdirSyncMethod · 0.45
writeFileSyncMethod · 0.45
symlinkSyncMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…