MCPcopy Create free account
hub / github.com/code-pushup/cli / formatScoreChange

Function formatScoreChange

packages/utils/src/lib/reports/utils.ts:125–129  ·  view source on GitHub ↗
(diff: number)

Source from the content-addressed store, hash-verified

123}
124
125export function formatScoreChange(diff: number): InlineText {
126 const marker = getDiffMarker(diff);
127 const text = formatDiffNumber(roundValue(diff * 100));
128 return colorByScoreDiff(`${marker} ${text}`, diff);
129}
130
131export function formatValueChange({
132 values,

Callers 3

createCategoriesTableFunction · 0.85
createDiffGroupsSectionFunction · 0.85
utils.unit.test.tsFile · 0.85

Calls 4

getDiffMarkerFunction · 0.85
formatDiffNumberFunction · 0.85
roundValueFunction · 0.85
colorByScoreDiffFunction · 0.85

Tested by

no test coverage detected