MCPcopy Create free account
hub / github.com/openai/plugins / parseCoverageFile

Function parseCoverageFile

plugins/plugin-eval/src/evaluators/coverage.js:86–97  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

84}
85
86async 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
99export async function analyzeCoverageArtifacts(rootPath) {
100 const checks = [];

Callers 1

analyzeCoverageArtifactsFunction · 0.85

Calls 3

parseLcovFunction · 0.85
parseCoverageXmlFunction · 0.85
parseCoverageJsonFunction · 0.85

Tested by

no test coverage detected