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

Function test_escape_cwd

test/parallel/test-fs-realpath.js:386–393  ·  view source on GitHub ↗
(realpath, realpathSync, cb)

Source from the content-addressed store, hash-verified

384
385const upone = path.join(process.cwd(), '..');
386function test_escape_cwd(realpath, realpathSync, cb) {
387 console.log('test_escape_cwd');
388 asynctest(realpath, ['..'], cb, function(er, uponeActual) {
389 assertEqualPath(
390 upone, uponeActual,
391 `realpath("..") expected: ${path.resolve(upone)} actual:${uponeActual}`);
392 });
393}
394
395function test_upone_actual(realpath, realpathSync, cb) {
396 console.log('test_upone_actual');

Callers

nothing calls this directly

Calls 3

asynctestFunction · 0.85
logMethod · 0.45
resolveMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…