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

Function testIfStatement

tools/eslint-rules/crypto-check.js:41–48  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

39 }
40
41 function testIfStatement(node) {
42 if (node.test.argument === undefined) {
43 return;
44 }
45 if (isCryptoCheck(node.test.argument)) {
46 checkCryptoCall(node);
47 }
48 }
49
50 function isCryptoCheck(node) {
51 return utils.usesCommonProperty(node, ['hasCrypto', 'hasFipsCrypto']);

Callers 1

createFunction · 0.85

Calls 2

isCryptoCheckFunction · 0.85
checkCryptoCallFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…