MCPcopy Index your code
hub / github.com/colbymchenry/codegraph / fmt

Function fmt

scripts/agent-eval/probe-sweep.mjs:97–105  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

95
96// Pretty-print as a compact table.
97const fmt = (r) =>
98 r.error
99 ? ` ${r.id.padEnd(13)} ERROR: ${r.error}`
100 : ` ${r.id.padEnd(13)} ${String(r.chars).padStart(6)}c ${String(r.lines).padStart(4)}L ${String(r.ms).padStart(4)}ms` +
101 ` ${r.hasEntryPoints ? 'EP ' : ' '}` +
102 `${r.hasFlowTrace ? 'TRC ' : ' '}` +
103 `${r.hasRouteManifest ? 'MAN ' : ' '}` +
104 `${r.hasTopHandler ? 'HND ' : ' '}` +
105 `${r.hasSmallRepoTail ? 'TAIL' : ' '}`;
106console.log(`=== probe-sweep tool=${TOOL} n=${subjects.length} (${Date.now() - t0}ms total) ===`);
107console.log(' id chars lines ms signals');
108console.log(' ' + '-'.repeat(56));

Callers 1

probe-sweep.mjsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected