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

Function logAfterTime

test/common/child_process.js:37–43  ·  view source on GitHub ↗
(time)

Source from the content-addressed store, hash-verified

35assert(kExpiringChildRunTime > kExpiringParentTimer);
36
37function logAfterTime(time) {
38 setTimeout(() => {
39 // The following console statements are part of the test.
40 console.log('child stdout');
41 console.error('child stderr');
42 }, time);
43}
44
45function checkOutput(str, check) {
46 if ((check instanceof RegExp && !check.test(str)) ||

Calls 3

setTimeoutFunction · 0.50
logMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…