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

Function cnt

test/parallel/test-stream-writev.js:51–58  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

49 let counter = 0;
50 let expectCount = 0;
51 function cnt(msg) {
52 expectCount++;
53 const expect = expectCount;
54 return common.mustSucceed(() => {
55 counter++;
56 assert.strictEqual(counter, expect);
57 });
58 }
59
60 const w = new stream.Writable({ decodeStrings: decode });
61 w._write = common.mustNotCall('Should not call _write');

Callers 1

testFunction · 0.85

Calls

no outgoing calls

Tested by 1

testFunction · 0.68