Skip to content

Commit

Permalink
Run build
Browse files Browse the repository at this point in the history
  • Loading branch information
romeovs committed Feb 13, 2021
1 parent 68b59a6 commit 9f75fe6
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions dist/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -22793,6 +22793,7 @@ const fragment = function(...children) {
function tabulate(lcov, options) {
const head = tr(
th("File"),
th("Stmts"),
th("Branches"),
th("Funcs"),
th("Lines"),
Expand Down Expand Up @@ -22826,12 +22827,28 @@ function toFolder(path) {
return ""
}

return tr(td({ colspan: 5 }, b(path)))
return tr(td({ colspan: 6 }, b(path)))
}

function getStatement(file) {
const { branches, functions, lines } = file;

return [branches, functions, lines].reduce(function(acc, curr) {
if (!curr) {
return acc
}

return {
hit: acc.hit + curr.hit,
found: acc.found + curr.found,
}
}, { hit: 0, found: 0 })
}

function toRow(file, indent, options) {
return tr(
td(filename(file, indent, options)),
td(percentage$1(getStatement(file))),
td(percentage$1(file.branches)),
td(percentage$1(file.functions)),
td(percentage$1(file.lines)),
Expand Down Expand Up @@ -22909,7 +22926,6 @@ function ranges(linenos) {
res.push(last);
}

console.log(linenos, res);
return res
}

Expand Down

0 comments on commit 9f75fe6

Please sign in to comment.