MCPcopy Create free account
hub / github.com/nodejs/node-addon-api / test

Function test

test/async_context.js:114–122  ·  view source on GitHub ↗
(binding)

Source from the content-addressed store, hash-verified

112}
113
114async function test (binding) {
115 if (!checkAsyncHooks()) {
116 return;
117 }
118
119 await makeCallbackWithResource(binding);
120 await makeCallbackWithoutResource(binding);
121 assertAsyncContextReturnsCorrectEnv(binding);
122}

Callers

nothing calls this directly

Calls 4

makeCallbackWithResourceFunction · 0.85
checkAsyncHooksFunction · 0.70

Tested by

no test coverage detected