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

Method erase_current_line

tools/gyp/test_gyp.py:237–240  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

235 sys.stdout.flush()
236
237 def erase_current_line(self):
238 print("\b" * self.hpos + " " * self.hpos + "\b" * self.hpos, end="")
239 sys.stdout.flush()
240 self.hpos = 0
241
242 def print_results(self):
243 num_failures = len(self.failures)

Callers 2

runMethod · 0.95
run_testMethod · 0.95

Calls 2

flushMethod · 0.65
printFunction · 0.50

Tested by

no test coverage detected