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

Function runPromiseTest

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

Source from the content-addressed store, hash-verified

181}
182
183const runPromiseTest = async (func, arg) => {
184 const startTime = process.hrtime.bigint();
185 const bigintStats = await func(arg, common.mustNotMutateObjectDeep({ bigint: true }));
186 const numStats = await func(arg);
187 const endTime = process.hrtime.bigint();
188 const allowableDelta = Math.ceil(Number(endTime - startTime) / 1e6);
189 verifyStats(bigintStats, numStats, allowableDelta);
190};
191
192{
193 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…