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

Method Truncate

tools/test.py:483–487  ·  view source on GitHub ↗
(self, str, length)

Source from the content-addressed store, hash-verified

481 print("\n") # Two blank lines between failures, for visual separation
482
483 def Truncate(self, str, length):
484 if length and (len(str) > (length - 3)):
485 return str[:(length-3)] + "..."
486 else:
487 return str
488
489 def PrintProgress(self, name):
490 self.ClearLine(self.last_status_length)

Callers 1

PrintProgressMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected