MCPcopy Index your code
hub / github.com/code-pushup/cli / infoMessage

Function infoMessage

examples/plugins/src/file-size/src/file-size.plugin.ts:147–149  ·  view source on GitHub ↗
(filePath: string, size: number)

Source from the content-addressed store, hash-verified

145}
146
147export function infoMessage(filePath: string, size: number) {
148 return `File ${path.basename(filePath)} is OK. (size: ${formatBytes(size)})`;
149}
150
151export function errorMessage(filePath: string, size: number, budget: number) {
152 const sizeDifference = formatBytes(size - budget);

Callers 2

assertFileSizeFunction · 0.85

Calls 1

formatBytesFunction · 0.90

Tested by

no test coverage detected