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

Function runTest

test/parallel/test-http2-server-push-stream-errors.js:79–98  ·  view source on GitHub ↗
(test)

Source from the content-addressed store, hash-verified

77server.listen(0, common.mustCall(() => runTest(tests.shift())));
78
79function runTest(test) {
80 const url = `http://localhost:${server.address().port}`;
81
82 const client = http2.connect(url);
83 const req = client.request();
84
85 currentError = test;
86 req.resume();
87 req.end();
88
89 req.on('close', common.mustCall(() => {
90 client.close();
91
92 if (!tests.length) {
93 server.close();
94 } else {
95 runTest(tests.shift());
96 }
97 }));
98}

Calls 8

addressMethod · 0.65
connectMethod · 0.65
requestMethod · 0.65
resumeMethod · 0.65
closeMethod · 0.65
endMethod · 0.45
onMethod · 0.45
shiftMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…