test: add common.mustNotCall()
This commit adds a mustNotCall()
helper for testing. This provides an alternative to using common.fail()
as a callback, or creating a callback function for the sole purpose of calling common.fail()
.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines