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

Function mounted

test/parallel/test-vfs-fs-stat-callback.js:14–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12const baseMountPoint = path.resolve('/tmp/vfs-stat-cb-' + process.pid);
13let counter = 0;
14function mounted() {
15 const mountPoint = baseMountPoint + '-' + (counter++);
16 const myVfs = vfs.create();
17 myVfs.mkdirSync('/src', { recursive: true });
18 myVfs.writeFileSync('/src/hello.txt', 'hello world');
19 myVfs.mount(mountPoint);
20 return { myVfs, mountPoint };
21}
22
23// stat (cb)
24{

Callers 1

Calls 4

mountMethod · 0.80
createMethod · 0.45
mkdirSyncMethod · 0.45
writeFileSyncMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…