function meetsThreshold(e,t){if(e.score===null)return!0;let n=t?.[e.name]??1;return e.score>=n}function computeCaseVerdict(e){return e.error!==void 0||e.checks.some(e=>!e.passed)?`failed`:e.scores.some(t=>!meetsThreshold(t,e.thresholds))?`scored`:`passed`}export{computeCaseVerdict,meetsThreshold};