MCPcopy Create free account
hub / github.com/nodejs/node / validateReadFile

Function validateReadFile

test/parallel/test-fs-promises-readfile.js:25–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25async function validateReadFile() {
26 const readBuffer = await readFile(fn);
27 assert.strictEqual(readBuffer.equals(largeBuffer), true);
28}
29
30async function validateReadFileProc() {
31 // Test to make sure reading a file under the /proc directory works. Adapted

Callers 1

Calls 2

readFileFunction · 0.70
equalsMethod · 0.45

Tested by

no test coverage detected