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

Function testComparator

test/fixtures/snapshot/typescript.js:3596–3606  ·  view source on GitHub ↗
(version, operator, operand)

Source from the content-addressed store, hash-verified

3594 return true;
3595 }
3596 function testComparator(version, operator, operand) {
3597 var cmp = version.compareTo(operand);
3598 switch (operator) {
3599 case "<": return cmp < 0;
3600 case "<=": return cmp <= 0;
3601 case ">": return cmp > 0;
3602 case ">=": return cmp >= 0;
3603 case "=": return cmp === 0;
3604 default: return ts.Debug.assertNever(operator);
3605 }
3606 }
3607 function formatDisjunction(alternatives) {
3608 return ts.map(alternatives, formatAlternative).join(" || ") || "*";
3609 }

Callers 1

testAlternativeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…