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

Method print_

tools/gyp/test_gyp.py:228–235  ·  view source on GitHub ↗
(self, msg)

Source from the content-addressed store, hash-verified

226 print()
227
228 def print_(self, msg):
229 print(msg, end="")
230 index = msg.rfind("\n")
231 if index == -1:
232 self.hpos += len(msg)
233 else:
234 self.hpos = len(msg) - index
235 sys.stdout.flush()
236
237 def erase_current_line(self):
238 print("\b" * self.hpos + " " * self.hpos + "\b" * self.hpos, end="")

Callers 3

run_testMethod · 0.95
mainFunction · 0.80
mainFunction · 0.80

Calls 2

flushMethod · 0.65
printFunction · 0.50

Tested by

no test coverage detected