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

Function test

test/parallel/test-fs-readfilesync-enoent.js:17–24  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

15const path = require('path');
16
17function test(p) {
18 const result = fs.realpathSync(p);
19 assert.strictEqual(result.toLowerCase(), path.resolve(p).toLowerCase());
20
21 fs.realpath(p, common.mustSucceed((result) => {
22 assert.strictEqual(result.toLowerCase(), path.resolve(p).toLowerCase());
23 }));
24}
25
26test(`//${os.hostname()}/c$/Windows/System32`);
27test(`//${os.hostname()}/c$/Windows`);

Callers 1

Calls 3

realpathSyncMethod · 0.45
resolveMethod · 0.45
realpathMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…