MCPcopy Create free account
hub / github.com/SethGammon/Citadel / checkById

Function checkById

scripts/usefulness-trial.js:49–56  ·  view source on GitHub ↗
(proof, id)

Source from the content-addressed store, hash-verified

47}
48
49function checkById(proof, id) {
50 return proof.checks.find((check) => check.id === id) || {
51 id,
52 status: 'fail',
53 detail: 'missing check',
54 evidence: [],
55 };
56}
57
58function criterion(id, label, status, detail, evidence = []) {
59 return { id, label, status, detail, evidence };

Callers 1

buildCriteriaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected