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

Function test

test/async_progress_queue_worker.js:20–27  ·  view source on GitHub ↗
({ asyncprogressqueueworker })

Source from the content-addressed store, hash-verified

18}
19
20async function test ({ asyncprogressqueueworker }) {
21 await success(asyncprogressqueueworker);
22 await fail(asyncprogressqueueworker);
23
24 await asyncProgressWorkerCallbackOverloads(asyncprogressqueueworker.runWorkerWithCb);
25 await asyncProgressWorkerRecvOverloads(asyncprogressqueueworker.runWorkerWithRecv);
26 await asyncProgressWorkerNoCbOverloads(asyncprogressqueueworker.runWorkerNoCb);
27}
28
29async function asyncProgressWorkerCallbackOverloads (bindingFunction) {
30 bindingFunction(common.mustCall());

Callers

nothing calls this directly

Calls 5

successFunction · 0.70
failFunction · 0.70

Tested by

no test coverage detected