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

Function score

scripts/usefulness-trial.js:138–145  ·  view source on GitHub ↗
(criteria)

Source from the content-addressed store, hash-verified

136}
137
138function score(criteria) {
139 const passed = criteria.filter((item) => item.status === 'pass').length;
140 return {
141 passed,
142 total: criteria.length,
143 label: `${passed}/${criteria.length}`,
144 };
145}
146
147function buildTrial(projectRoot, options = {}) {
148 const root = path.resolve(projectRoot || process.cwd());

Callers 1

buildTrialFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected