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

Function testInitialized

test/sequential/test-async-wrap-getasyncid.js:93–98  ·  view source on GitHub ↗
(req, ctor_name)

Source from the content-addressed store, hash-verified

91}
92
93function testInitialized(req, ctor_name) {
94 assert.strictEqual(typeof req.getAsyncId, 'function');
95 assert(Number.isSafeInteger(req.getAsyncId()));
96 assert(req.getAsyncId() > 0);
97 assert.strictEqual(req.constructor.name, ctor_name);
98}
99
100
101{

Callers 3

openTestFunction · 0.70
writeDataFunction · 0.70

Calls 2

getAsyncIdMethod · 0.80
assertFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…