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

Function verifyStatFsObject

test/parallel/test-fs-promises.js:86–98  ·  view source on GitHub ↗
(stat, isBigint = false)

Source from the content-addressed store, hash-verified

84}
85
86function verifyStatFsObject(stat, isBigint = false) {
87 const valueType = isBigint ? 'bigint' : 'number';
88
89 assert.strictEqual(typeof stat, 'object');
90 assert.strictEqual(typeof stat.type, valueType);
91 assert.strictEqual(typeof stat.bsize, valueType);
92 assert.strictEqual(typeof stat.frsize, valueType);
93 assert.strictEqual(typeof stat.blocks, valueType);
94 assert.strictEqual(typeof stat.bfree, valueType);
95 assert.strictEqual(typeof stat.bavail, valueType);
96 assert.strictEqual(typeof stat.files, valueType);
97 assert.strictEqual(typeof stat.ffree, valueType);
98}
99
100async function getHandle(dest) {
101 await copyFile(fixtures.path('baz.js'), dest);

Callers 1

doTestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…