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

Function child

test/parallel/test-child-process-stdio-big-write-end.js:77–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75}
76
77function child() {
78 let received = 0;
79 process.stdin.on('data', mustCallAtLeast((c) => {
80 received += c.length;
81 }));
82 process.stdin.on('end', mustCall(() => {
83 // This console.log is part of the test.
84 console.log(received);
85 }));
86}

Calls 4

mustCallAtLeastFunction · 0.85
mustCallFunction · 0.70
onMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…