Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fraxy-v committed Sep 1, 2024
1 parent 08cb248 commit c4154cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/check-coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ module.exports = async (sources, covFile) => {
for (let lines of clazz.lines) {
for (let line of lines.line) {
if (line.$.hits === '0') {
console.log(`Uncovered line in ${file}:${line.$.number}`);
console.log(`Uncovered line in ${clazz.$.filename}:${line.$.number}`);
if (sources.find(source => source.file === clazz.$.filename && source.lines.includes(parseInt(line.$.number)))) {
console.error(`Uncovered line in ${file}:${line.$.number}`);
console.error(`Uncovered line in ${clazz.$.filename}:${line.$.number}`);
// Found an uncovered line in a changed file
return false;
}
Expand Down

0 comments on commit c4154cb

Please sign in to comment.