MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / count

Function count

libatomic/src/review/viewer.js:120–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118 ]));
119 const checks = graph.nodes.filter(node => node.kind === 'check' && node.properties.rule === id);
120 const count = status => checks.filter(node => node.properties.status === status).length;
121 host.append(el('p', 'muted', `${count('completed')} completed · ${count('skipped')} skipped · ${count('error')} errors`));
122 host.append(detail('Exact check coverage', el('pre', '', checks.map(node => `${node.properties.path}: ${node.properties.status}\n${node.properties.detail}`).join('\n\n'))));
123 } else if (metric) {

Callers 1

showCardFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected