MCPcopy Create free account
hub / github.com/nodejs/node / indent

Function indent

lib/internal/test_runner/reporter/tap.js:116–124  ·  view source on GitHub ↗
(nesting)

Source from the content-addressed store, hash-verified

114
115const memo = new SafeMap();
116function indent(nesting) {
117 let value = memo.get(nesting);
118 if (value === undefined) {
119 value = StringPrototypeRepeat(kDefaultIndent, nesting);
120 memo.set(nesting, value);
121 }
122
123 return value;
124}
125
126
127// In certain places, # and \ need to be escaped as \# and \\.

Callers 6

#handleEventMethod · 0.70
tapReporterFunction · 0.70
reportTestFunction · 0.70
reportDetailsFunction · 0.70

Calls 2

getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected