(label, leftValue, rightValue, formatter)
| 1125 | } |
| 1126 | |
| 1127 | function compareMetricRow(label, leftValue, rightValue, formatter) { |
| 1128 | const tone = buildCompareTone(leftValue, rightValue, formatter); |
| 1129 | return { |
| 1130 | label, |
| 1131 | left: formatter(leftValue), |
| 1132 | right: formatter(rightValue), |
| 1133 | delta: formatDelta(leftValue, rightValue, formatter), |
| 1134 | changed: tone.changed, |
| 1135 | leftClass: tone.leftClass, |
| 1136 | rightClass: tone.rightClass, |
| 1137 | deltaClass: tone.deltaClass, |
| 1138 | }; |
| 1139 | } |
| 1140 | |
| 1141 | function compareSummaryCard(label, leftName, leftRaw, rightName, rightRaw, formatter, delta) { |
| 1142 | const tone = buildCompareTone(leftRaw, rightRaw, formatter); |
no test coverage detected