(filePath)
| 84 | } |
| 85 | |
| 86 | async function parseCoverageFile(filePath) { |
| 87 | if (filePath.endsWith("lcov.info")) { |
| 88 | return parseLcov(filePath); |
| 89 | } |
| 90 | if (filePath.endsWith("coverage.xml")) { |
| 91 | return parseCoverageXml(filePath); |
| 92 | } |
| 93 | if (filePath.endsWith(".json")) { |
| 94 | return parseCoverageJson(filePath); |
| 95 | } |
| 96 | return null; |
| 97 | } |
| 98 | |
| 99 | export async function analyzeCoverageArtifacts(rootPath) { |
| 100 | const checks = []; |
no test coverage detected