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

Function runTest

test/parallel/test-fs-existssync-memleak-longpath.js:27–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 assert(fs.existsSync(fullPath), 'Test file should exist');
26
27 async function runTest() {
28 try {
29 await checkIfCollectableByCounting(
30 () => {
31 for (let i = 0; i < 10; i++) {
32 fs.existsSync(fullPath);
33 }
34 return 10;
35 },
36 FSReqCallback,
37 10
38 );
39 } catch (err) {
40 assert.ifError(err, 'Memory leak detected: FSReqCallback objects were not collected');
41 } finally {
42 tmpdir.refresh();
43 }
44 }
45
46 runTest().then(common.mustCall());
47}

Calls 3

existsSyncMethod · 0.45
refreshMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…