(value: string, maxChars: number = PREVIEW_LIMIT)
| 144 | } |
| 145 | |
| 146 | function preview(value: string, maxChars: number = PREVIEW_LIMIT): string { |
| 147 | if (value.length <= maxChars) { |
| 148 | return value |
| 149 | } |
| 150 | return `${value.slice(0, maxChars)}\n...[truncated ${value.length - maxChars} chars]` |
| 151 | } |
| 152 | |
| 153 | function parsePragmaTimeout(code: string): number | undefined { |
| 154 | const firstLine = code.split('\n', 1)[0]?.trimStart() ?? '' |
no outgoing calls
no test coverage detected