(value: unknown)
| 571 | } |
| 572 | |
| 573 | function toNumber(value: unknown): number { |
| 574 | return typeof value === 'number' && Number.isFinite(value) ? value : 0; |
| 575 | } |
| 576 | |
| 577 | function applyContextWindow(lines: SnapshotDiffLine[], contextWindow: number): SnapshotDiffLine[] { |
| 578 | if (lines.length === 0) return lines; |
no test coverage detected