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

Function getCallback

test/parallel/test-fs-readv.js:25–34  ·  view source on GitHub ↗
(fd, bufferArr)

Source from the content-addressed store, hash-verified

23};
24
25const getCallback = (fd, bufferArr) => {
26 return common.mustSucceed((bytesRead, buffers) => {
27 assert.deepStrictEqual(bufferArr, buffers);
28 const expectedLength = exptectedBuff.length;
29 assert.deepStrictEqual(bytesRead, expectedLength);
30 fs.closeSync(fd);
31
32 assert(Buffer.concat(bufferArr).equals(exptectedBuff));
33 });
34};
35
36// fs.readv with array of buffers with all parameters
37{

Callers 1

test-fs-readv.jsFile · 0.85

Calls 4

concatMethod · 0.80
assertFunction · 0.50
closeSyncMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…