(path: string)
| 498 | } |
| 499 | |
| 500 | function readRunLog(path: string): RunLogPayload | null { |
| 501 | try { |
| 502 | const raw = readFileSync(path, 'utf8') |
| 503 | return JSON.parse(raw) as RunLogPayload |
| 504 | } catch { |
| 505 | return null |
| 506 | } |
| 507 | } |
| 508 | |
| 509 | async function judgeLatestSession(rejudge: boolean): Promise<void> { |
| 510 | const files = listRunLogFiles() |
no test coverage detected