MCPcopy Create free account
hub / github.com/mscdex/ssh2 / mustNotCall

Function mustNotCall

test/common.js:100–111  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

98}
99
100function mustNotCall(msg) {
101 const callSite = getCallSite(mustNotCall);
102 return function mustNotCall(...args) {
103 args = args.map(inspect).join(', ');
104 const argsInfo = (args.length > 0
105 ? `\ncalled with arguments: ${args}`
106 : '');
107 assert.fail(
108 `${msg || 'function should not have been called'} at ${callSite}`
109 + argsInfo);
110 };
111}
112
113function setup(title, configs) {
114 const {

Callers 3

test-userauth.jsFile · 0.85
test-sftp.jsFile · 0.85

Calls 1

getCallSiteFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…