Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
islyn committed Sep 12, 2023
1 parent 722311d commit d68af39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dest/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15523,7 +15523,7 @@ const unpackage = (packages) => {

packages.forEach((packages) => {
packages.package.forEach((pack) => {
const packageName = pack.$.name;
const packageName = 'total';
let classes = [];
pack.classes.forEach((c) => {
classes = classes.concat(c.class);
Expand All @@ -15540,7 +15540,7 @@ const unpackage = (packages) => {

// calculate coverage of each class in this package
classes.forEach((c) => {
const className = 'total';
const className = c.$.name;

// initial class coverage with 0
coverageSummary[className] = {};
Expand Down
4 changes: 2 additions & 2 deletions src/coberturaParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const unpackage = (packages) => {

packages.forEach((packages) => {
packages.package.forEach((pack) => {
const packageName = pack.$.name;
const packageName = 'total';
let classes = [];
pack.classes.forEach((c) => {
classes = classes.concat(c.class);
Expand All @@ -28,7 +28,7 @@ const unpackage = (packages) => {

// calculate coverage of each class in this package
classes.forEach((c) => {
const className = 'total';
const className = c.$.name;

// initial class coverage with 0
coverageSummary[className] = {};
Expand Down

0 comments on commit d68af39

Please sign in to comment.