Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fraxy-v committed Sep 1, 2024
1 parent 99bee4c commit 5bd8ba5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/check-coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ module.exports = async (sources, covFile) => {
for (let line of lines.line) {
if (line.$.hits === '0') {
console.log(`Uncovered line in ${clazz.$.filename}:${line.$.number}`);
if (sources.findIndex(source => {

const idx = sources.findIndex(source => {
console.log(source.file, clazz.$.filename, source.file === clazz.$.filename);
console.log(source.lines, parseInt(line.$.number), source.lines.includes(parseInt(line.$.number)));
source.file === clazz.$.filename && source.lines.includes(parseInt(line.$.number))
}
) > -1) {
});
console.log(idx);
if (idx > -1) {
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 5bd8ba5

Please sign in to comment.