node/test/addons
cjihrig 19907c27a6
test: use mustCall() for simple flow tracking
Many of the tests use variables to track when callback functions
are invoked or events are emitted. These variables are then
asserted on process exit. This commit replaces this pattern in
straightforward cases with common.mustCall(). This makes the
tests easier to reason about, leads to a net reduction in lines
of code, and uncovered a few bugs in tests. This commit also
replaces some callbacks that should never be called with
common.fail().

PR-URL: https://github.com/nodejs/node/pull/7753
Reviewed-By: Wyatt Preul <wpreul@gmail.com>
Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2017-01-31 20:04:31 -05:00
..
async-hello-world test: use mustCall() for simple flow tracking 2017-01-31 20:04:31 -05:00
at-exit test: enable addons test to pass with debug build 2016-12-20 14:18:42 -05:00
buffer-free-callback test: enable addons test to pass with debug build 2016-12-20 14:18:42 -05:00
heap-profiler test: enable addons test to pass with debug build 2016-12-20 14:18:42 -05:00
hello-world test: enable addons test to pass with debug build 2016-12-20 14:18:42 -05:00
hello-world-function-export test: enable addons test to pass with debug build 2016-12-20 14:18:42 -05:00
load-long-path test: enable addons test to pass with debug build 2016-12-20 14:18:42 -05:00
make-callback test: enable addons test to pass with debug build 2016-12-20 14:18:42 -05:00
make-callback-recurse test: enable addons test to pass with debug build 2016-12-20 14:18:42 -05:00
new-target test: add new.target add-on regression test 2016-12-20 14:05:45 -05:00
openssl-binding test: enable addons test to pass with debug build 2016-12-20 14:18:42 -05:00
repl-domain-abort test: build addons with V8_DEPRECATION_WARNINGS=1 2016-07-14 12:45:20 -07:00
stringbytes-external-exceed-max test: enable addons test to pass with debug build 2016-12-20 14:18:42 -05:00
.gitignore build: make ci test addons in test/addons 2015-08-25 12:03:57 +02:00
testcfg.py addons: build and test examples 2014-01-22 00:39:13 +04:00