MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / compareMetricRow

Function compareMetricRow

tests/loadtest/tools/dashboard/app.js:1127–1139  ·  view source on GitHub ↗
(label, leftValue, rightValue, formatter)

Source from the content-addressed store, hash-verified

1125}
1126
1127function 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
1141function compareSummaryCard(label, leftName, leftRaw, rightName, rightRaw, formatter, delta) {
1142 const tone = buildCompareTone(leftRaw, rightRaw, formatter);

Callers 1

renderCompareMetricsFunction · 0.85

Calls 2

buildCompareToneFunction · 0.85
formatDeltaFunction · 0.85

Tested by

no test coverage detected