lib/report.js
function row(metric, dimensions, isTarget) {
  let left = '';
  let right = '';

  if (isTarget) {
    left = HIGHLIGHT;
    right = RESET;
  }

  return BORDER_VERT
    + left + padEnd(' ' + metric.label, dimensions.name) + right
    + BORDER_VERT
    + left + padEnd(' ' + metric.avg + UNIT, dimensions.avg) + right
    + BORDER_VERT
    + left + padEnd(' ' + metric.min + UNIT, dimensions.min) + right
    + BORDER_VERT
    + left + padEnd(' ' + metric.max + UNIT, dimensions.max) + right
    + BORDER_VERT
    + '\n';
}
function row(metric, dimensions, isTarget) {
  let left = '';
  let right = '';

  if (isTarget) {
    left = HIGHLIGHT;
    right = RESET;
  }

  return BORDER_VERT
    + left + padEnd(' ' + metric.label, dimensions.name) + right
    + BORDER_VERT
    + left + padEnd(' ' + metric.avg + UNIT, dimensions.avg) + right
    + BORDER_VERT
    + left + padEnd(' ' + metric.min + UNIT, dimensions.min) + right
    + BORDER_VERT
    + left + padEnd(' ' + metric.max + UNIT, dimensions.max) + right
    + BORDER_VERT
    + '\n';
}
function row ( metric , dimensions , isTarget ) { let left = '' ; let right = '' ; if ( isTarget ) { left = HIGHLIGHT ; right = RESET ; } return BORDER_VERT + left + padEnd ( ' ' + metric . label , dimensions . name ) + right + BORDER_VERT + left + padEnd ( ' ' + metric . avg + UNIT , dimensions . avg ) + right + BORDER_VERT + left + padEnd ( ' ' + metric . min + UNIT , dimensions . min ) + right + BORDER_VERT + left + padEnd ( ' ' + metric . max + UNIT , dimensions . max ) + right + BORDER_VERT + '\n' ; }
Generates a report table row.

@param {@link FunctionMetrics} metric
@param {Dimensions} dimensions
@param {boolean} isTarget

@returns {string}
Generates a report table row .