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

Function setup

test/parallel/test-console-group.js:15–30  ·  view source on GitHub ↗
(groupIndentation)

Source from the content-addressed store, hash-verified

13let c, stdout, stderr;
14
15function setup(groupIndentation) {
16 stdout = '';
17 hijackStdout(function(data) {
18 stdout += data;
19 });
20
21 stderr = '';
22 hijackStderr(function(data) {
23 stderr += data;
24 });
25
26 c = new Console({ stdout: process.stdout,
27 stderr: process.stderr,
28 colorMode: false,
29 groupIndentation: groupIndentation });
30}
31
32function teardown() {
33 restoreStdout();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…