(test)
| 113 | } |
| 114 | |
| 115 | function getConsequentCryptoKeys(test) { |
| 116 | const names = new Set(); |
| 117 | if (isIsCryptoKeyCall(test)) { |
| 118 | names.add(getIdentifierArgument(test)); |
| 119 | } else if (test?.type === 'LogicalExpression' && test.operator === '&&') { |
| 120 | for (const name of getConsequentCryptoKeys(test.left)) { |
| 121 | names.add(name); |
| 122 | } |
| 123 | for (const name of getConsequentCryptoKeys(test.right)) { |
| 124 | names.add(name); |
| 125 | } |
| 126 | } |
| 127 | names.delete(undefined); |
| 128 | return names; |
| 129 | } |
| 130 | |
| 131 | function getAlternateCryptoKeys(test) { |
| 132 | const names = new Set(); |
no test coverage detected
searching dependent graphs…