MCPcopy Index your code
hub / github.com/nodejs/node / addTableLine

Function addTableLine

lib/internal/test_runner/utils.js:488–497  ·  view source on GitHub ↗
(prefix, width)

Source from the content-addressed store, hash-verified

486
487const memo = new SafeMap();
488function addTableLine(prefix, width) {
489 const key = `${prefix}-${width}`;
490 let value = memo.get(key);
491 if (value === undefined) {
492 value = `${prefix}${StringPrototypeRepeat('-', width)}\n`;
493 memo.set(key, value);
494 }
495
496 return value;
497}
498
499const kHorizontalEllipsis = '\u2026';
500function truncateStart(string, width) {

Callers 1

getCoverageReportFunction · 0.85

Calls 2

getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…