(label, headings)
| 470 | function cardCoverage() { |
| 471 | const host = el('div', 'card-coverage'); |
| 472 | const table = (label, headings) => { |
| 473 | const section = el('section'); section.append(el('h3', '', label)); |
| 474 | const grid = el('table'), head = el('thead'), row = el('tr'), body = el('tbody'); |
| 475 | for (const heading of headings) { const cell = el('th', '', heading); cell.scope = 'col'; row.append(cell); } |
| 476 | head.append(row); grid.append(head, body); section.append(grid); host.append(section); |
| 477 | return body; |
| 478 | }; |
| 479 | const auditBody = table('Audit cards — local rule coverage', ['Card', 'Coverage', 'Checks', viewComparison ? 'New / existing / resolved / other' : 'Findings']); |
| 480 | for (const card of data.audit_cards) { |
| 481 | const checks = graph.nodes.filter(node => node.kind === 'check' && node.properties.rule === card.id); |
no test coverage detected