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

Function expectMatches

test/parallel/test-fs-readfile-utf8-fast-path.js:18–23  ·  view source on GitHub ↗
(filePath, rawBuf)

Source from the content-addressed store, hash-verified

16}
17
18function expectMatches(filePath, rawBuf) {
19 assert.strictEqual(
20 fs.readFileSync(filePath, 'utf8'),
21 rawBuf.toString('utf8'),
22 );
23}
24
25describe('fs.readFileSync utf8 simdutf dispatch', () => {
26 it('empty file', () => {

Calls 2

readFileSyncMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected