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

Function runSyncTest

test/parallel/test-fs-stat-bigint.js:96–103  ·  view source on GitHub ↗
(func, arg)

Source from the content-addressed store, hash-verified

94}
95
96const runSyncTest = (func, arg) => {
97 const startTime = process.hrtime.bigint();
98 const bigintStats = func(arg, common.mustNotMutateObjectDeep({ bigint: true }));
99 const numStats = func(arg);
100 const endTime = process.hrtime.bigint();
101 const allowableDelta = Math.ceil(Number(endTime - startTime) / 1e6);
102 verifyStats(bigintStats, numStats, allowableDelta);
103};
104
105{
106 const filename = getFilename();

Callers 1

Calls 2

verifyStatsFunction · 0.85
funcFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…