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

Function testDiagnosticChannel

test/parallel/test-diagnostics-channel-net.js:11–18  ·  view source on GitHub ↗
(subscribers, test, after)

Source from the content-addressed store, hash-verified

9const isNetServer = (server) => server instanceof net.Server;
10
11function testDiagnosticChannel(subscribers, test, after) {
12 dc.tracingChannel('net.server.listen').subscribe(subscribers);
13
14 test(common.mustCall(() => {
15 dc.tracingChannel('net.server.listen').unsubscribe(subscribers);
16 after?.();
17 }));
18}
19
20const testSuccessfulListen = common.mustCall(() => {
21 let cb;

Callers 1

Calls 4

testFunction · 0.70
afterFunction · 0.70
subscribeMethod · 0.45
unsubscribeMethod · 0.45

Tested by

no test coverage detected