(filePath)
| 4187 | const root = cg.getProjectRoot(); |
| 4188 | const sources = new Map<string, string | undefined>(); |
| 4189 | const readSource: SourceReader = (filePath) => { |
| 4190 | if (!sources.has(filePath)) { |
| 4191 | let text: string | undefined; |
| 4192 | try { |
| 4193 | const abs = validatePathWithinRoot(root, filePath); |
| 4194 | text = abs === null ? undefined : readFileSync(abs, 'utf-8'); |
| 4195 | } catch { /* unreadable → not known to be test code */ } |
| 4196 | sources.set(filePath, text); |
| 4197 | } |
| 4198 | return sources.get(filePath); |
| 4199 | }; |
| 4200 | const verdicts = new Map<string, boolean>(); |
| 4201 | return (node) => { |
| 4202 | let v = verdicts.get(node.id); |
nothing calls this directly
no test coverage detected