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

Function doRead

test/parallel/test-fs-promises-writefile.js:151–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149}
150
151async function doRead() {
152 const data = await fsPromises.readFile(dest);
153 const buf = fs.readFileSync(dest);
154 assert.deepStrictEqual(buf, data);
155}
156
157async function doReadWithEncoding() {
158 const data = await fsPromises.readFile(dest, 'utf-8');

Callers 1

Calls 2

readFileMethod · 0.45
readFileSyncMethod · 0.45

Tested by

no test coverage detected