(total: number, gate: EvalGate)
| 90 | } |
| 91 | |
| 92 | function resolveGateThreshold(total: number, gate: EvalGate): number { |
| 93 | if (gate <= 1) { |
| 94 | return Math.ceil(total * gate); |
| 95 | } |
| 96 | |
| 97 | return Math.ceil(gate); |
| 98 | } |
| 99 | |
| 100 | function hashPath(filePath: string): string { |
| 101 | return crypto.createHash('sha1').update(normalizePath(filePath)).digest('hex').slice(0, 8); |
no outgoing calls
no test coverage detected