lib/coberturaReportParser.js
function processReport(xml, computation) {
  if (xml.packages.package instanceof Array) {
    // Process all the packages
    xml.packages.package.forEach(function(packageObject) {
      processPackage(packageObject, computation);
    });

  } else {
    processPackage(xml.packages.package, computation);
  }
}
function processReport(xml, computation) {
  if (xml.packages.package instanceof Array) {
    // Process all the packages
    xml.packages.package.forEach(function(packageObject) {
      processPackage(packageObject, computation);
    });

  } else {
    processPackage(xml.packages.package, computation);
  }
}
function processReport ( xml , computation ) { if ( xml . packages . package instanceof Array ) { // Process all the packages xml . packages . package . forEach ( function ( packageObject ) { processPackage ( packageObject , computation ) ; } ) ; } else { processPackage ( xml . packages . package , computation ) ; } }
Processes the XML report based on the package.

<package>...</package>

@param {Object} xml is the parsed report.
@param {Object} computation is result of computation.
Processes the XML report based on the package .