(values)
| 506 | } |
| 507 | |
| 508 | function formatLinesToRanges(values) { |
| 509 | return ArrayPrototypeMap(ArrayPrototypeReduce(values, (prev, current, index, array) => { |
| 510 | if ((index > 0) && ((current - array[index - 1]) === 1)) { |
| 511 | prev[prev.length - 1][1] = current; |
| 512 | } else { |
| 513 | prev.push([current]); |
| 514 | } |
| 515 | return prev; |
| 516 | }, []), (range) => ArrayPrototypeJoin(range, '-')); |
| 517 | } |
| 518 | |
| 519 | function getUncoveredLines(lines) { |
| 520 | return ArrayPrototypeFlatMap(lines, (line) => (line.count === 0 ? line.line : [])); |
no test coverage detected
searching dependent graphs…