(testBlock, args, callback, assertBlock)
| 68 | fs.mkdirSync(path.join(targetsAbsDir, 'nested-index', 'two')); |
| 69 | |
| 70 | function 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: |
| 87 | function test_simple_error_callback(realpath, realpathSync, cb) { |
no test coverage detected
searching dependent graphs…