lib/coberturaReportParser.js
function processPackage(packageObject, computation) {
  if (packageObject.classes.class instanceof Array) {
    // Process each individual class
    packageObject.classes.class.forEach(function(clazz) {
      processClass(clazz, computation);
    });

  } else {
    // Single class to be processed
    processClass(packageObject.classes.class, computation);
  }
}
function processPackage(packageObject, computation) {
  if (packageObject.classes.class instanceof Array) {
    // Process each individual class
    packageObject.classes.class.forEach(function(clazz) {
      processClass(clazz, computation);
    });

  } else {
    // Single class to be processed
    processClass(packageObject.classes.class, computation);
  }
}
function processPackage ( packageObject , computation ) { if ( packageObject . classes . class instanceof Array ) { // Process each individual class packageObject . classes . class . forEach ( function ( clazz ) { processClass ( clazz , computation ) ; } ) ; } else { // Single class to be processed processClass ( packageObject . classes . class , computation ) ; } }
Processes the individual package entry.

<package><class></package>

@param {Object} packageObject is the package object from the report.
@param {Object} computation is the result of the computation.
Processes the individual package entry .