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

Function testAlternative

test/fixtures/snapshot/typescript.js:3588–3595  ·  view source on GitHub ↗
(version, comparators)

Source from the content-addressed store, hash-verified

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];
3591 if (!testComparator(version, comparator.operator, comparator.operand))
3592 return false;
3593 }
3594 return true;
3595 }
3596 function testComparator(version, operator, operand) {
3597 var cmp = version.compareTo(operand);
3598 switch (operator) {

Callers 1

testDisjunctionFunction · 0.85

Calls 1

testComparatorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…