(oldLines, newLines, filePath, lineOffset)
| 136 | } |
| 137 | |
| 138 | function buildDiffFallback(oldLines, newLines, filePath, lineOffset) { |
| 139 | const ops = []; |
| 140 | oldLines.forEach((l, i) => ops.push({ type: 'del', text: l, oldLn: i + 1 })); |
| 141 | newLines.forEach((l, i) => ops.push({ type: 'add', text: l, newLn: i + 1 })); |
| 142 | return renderDiffOps(ops, filePath, lineOffset || 0); |
| 143 | } |
| 144 | |
| 145 | function renderDiffOps(ops, filePath, lineOffset) { |
| 146 | const off = lineOffset || 0; |
no test coverage detected