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

Function testDisjunction

test/fixtures/snapshot/typescript.js:3577–3587  ·  view source on GitHub ↗
(version, alternatives)

Source from the content-addressed store, hash-verified

3575 return { operator: operator, operand: operand };
3576 }
3577 function testDisjunction(version, alternatives) {
3578 // an empty disjunction is treated as "*" (all versions)
3579 if (alternatives.length === 0)
3580 return true;
3581 for (var _i = 0, alternatives_1 = alternatives; _i < alternatives_1.length; _i++) {
3582 var alternative = alternatives_1[_i];
3583 if (testAlternative(version, alternative))
3584 return true;
3585 }
3586 return false;
3587 }
3588 function testAlternative(version, comparators) {
3589 for (var _i = 0, comparators_1 = comparators; _i < comparators_1.length; _i++) {
3590 var comparator = comparators_1[_i];

Callers 1

typescript.jsFile · 0.85

Calls 1

testAlternativeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…