Format metadata suffix (last updated date and diff count).
(item: dict)
| 381 | |
| 382 | |
| 383 | def _format_meta_suffix(item: dict) -> str: |
| 384 | """Format metadata suffix (last updated date and diff count).""" |
| 385 | parts = [] |
| 386 | last_updated = item.get("last_updated") |
| 387 | diff_lines = item.get("diff_lines", 0) |
| 388 | if last_updated: |
| 389 | parts.append(last_updated) |
| 390 | if diff_lines > 0: |
| 391 | parts.append(f"Δ{diff_lines}") |
| 392 | return f" | {' '.join(parts)}" if parts else "" |
| 393 | |
| 394 | |
| 395 | def _format_test_suffix(item: dict) -> str: |
no test coverage detected