(commit: ClaimedCommit, width = 80)
| 47 | } |
| 48 | |
| 49 | function renderRows(commit: ClaimedCommit, width = 80) { |
| 50 | const raw = decoder.decode(commit.snapshot.getRealCharBytes(true)) |
| 51 | return Array.from({ length: commit.snapshot.height }, (_, index) => |
| 52 | raw.slice(index * width, (index + 1) * width).trimEnd(), |
| 53 | ) |
| 54 | } |
| 55 | |
| 56 | function destroy(commits: ClaimedCommit[]) { |
| 57 | for (const commit of commits) { |
no test coverage detected