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

Function asynctest

test/parallel/test-fs-realpath.js:70–84  ·  view source on GitHub ↗
(testBlock, args, callback, assertBlock)

Source from the content-addressed store, hash-verified

68fs.mkdirSync(path.join(targetsAbsDir, 'nested-index', 'two'));
69
70function asynctest(testBlock, args, callback, assertBlock) {
71 async_expected++;
72 testBlock.apply(testBlock, args.concat(function(err) {
73 let ignoreError = false;
74 if (assertBlock) {
75 try {
76 ignoreError = assertBlock.apply(assertBlock, arguments);
77 } catch (e) {
78 err = e;
79 }
80 }
81 async_completed++;
82 callback(ignoreError ? null : err);
83 }));
84}
85
86// sub-tests:
87function test_simple_error_callback(realpath, realpathSync, cb) {

Callers 11

test_relative_input_cwdFunction · 0.85
test_deep_symlink_mixFunction · 0.85
test_non_symlinksFunction · 0.85
test_escape_cwdFunction · 0.85
test_abs_with_kidsFunction · 0.85

Calls 3

concatMethod · 0.80
callbackFunction · 0.70
applyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…