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

Function testCryptoUsage

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

Source from the content-addressed store, hash-verified

28 let hasSkipCall = false;
29
30 function testCryptoUsage(node) {
31 if (utils.isRequired(node, requireModules) ||
32 utils.isBinding(node, bindingModules)) {
33 requireNodes.push(node);
34 }
35
36 if (utils.isCommonModule(node)) {
37 commonModuleNode = node;
38 }
39 }
40
41 function testIfStatement(node) {
42 if (node.test.argument === undefined) {

Callers 1

createFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…