(surface: dict[str, Any])
| 248 | |
| 249 | |
| 250 | def _surface_notes(surface: dict[str, Any]) -> str: |
| 251 | notes = surface.get("notes", "No additional canonical notes were recorded.") |
| 252 | receipt_refs = surface.get("receiptRefs", []) |
| 253 | if not isinstance(receipt_refs, list) or not receipt_refs: |
| 254 | return _cell(notes) |
| 255 | evidence = ", ".join(item for item in receipt_refs if isinstance(item, str)) |
| 256 | if not evidence: |
| 257 | return _cell(notes) |
| 258 | return _cell(f"{notes} Evidence: {evidence}") |
| 259 | |
| 260 | |
| 261 | def _finding_section(number: int, finding: dict[str, Any]) -> list[str]: |
no test coverage detected