MCPcopy Create free account
hub / github.com/cli/cli / result

Function result

evals/src/graders/result.ts:13–19  ·  view source on GitHub ↗
(name: string, checks: Check[])

Source from the content-addressed store, hash-verified

11}
12
13export function result(name: string, checks: Check[]): GraderResult {
14 const failures = checks.filter(([passed]) => !passed).map(([, reason]) => reason);
15 return {
16 name, kind: "code", passed: failures.length === 0, score: failures.length ? 0 : 1,
17 evidence: failures.length ? failures.join("; ") : "All required observations were verified.",
18 };
19}

Callers 3

gradeMethod · 0.50
gradeMethod · 0.50
gradeMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected