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

Function mustSucceed

test/common/index.js:470–476  ·  view source on GitHub ↗
(fn, exact)

Source from the content-addressed store, hash-verified

468}
469
470function mustSucceed(fn, exact) {
471 return mustCall(function(err, ...args) {
472 assert.ifError(err);
473 if (typeof fn === 'function')
474 return fn.apply(this, args);
475 }, exact);
476}
477
478function mustCallAtLeast(fn, minimum) {
479 return _mustCallInner(fn, minimum, 'minimum');

Calls 2

mustCallFunction · 0.70
applyMethod · 0.45

Tested by

no test coverage detected