Skip to content

Commit

Permalink
#
Browse files Browse the repository at this point in the history
Signed-off-by: Theo Truong <[email protected]>
  • Loading branch information
nhtruong committed May 27, 2024
1 parent 99f95b4 commit 6c2235e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/src/tester/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { type Evaluation, Result } from './types/eval.types'

export function overall_result (evaluations: Evaluation[]): Result {
if (evaluations.length === 0) return Result.PASSED
if (evaluations.some(e => e.result === Result.ERROR)) return Result.ERROR
if (evaluations.some(e => e.result === Result.FAILED)) return Result.FAILED
if (evaluations.every(e => e.result === Result.SKIPPED)) return Result.SKIPPED
if (evaluations.some(e => e.result === Result.SKIPPED)) return Result.SKIPPED
return Result.PASSED
}

0 comments on commit 6c2235e

Please sign in to comment.