(predicate: (p: string) => boolean)
| 196 | |
| 197 | describe('budget allocation', () => { |
| 198 | const share = (predicate: (p: string) => boolean) => { |
| 199 | let total = 0; |
| 200 | for (const [file, n] of bytes) if (predicate(file)) total += n; |
| 201 | return total / response.length; |
| 202 | }; |
| 203 | const answerShare = () => share((p) => startsWithAny(p, ANSWER_PREFIXES)); |
| 204 | const generatedShare = () => share((p) => p.startsWith(GENERATED_PREFIX)); |
| 205 |
no outgoing calls
no test coverage detected