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

Method to_string

deps/v8/tools/testrunner/local/command.py:193–202  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

191 return self.to_string()
192
193 def to_string(self):
194 def escape(part):
195 # Escape spaces. We may need to escape more characters for this to work
196 # properly.
197 if ' ' in part:
198 return '"%s"' % part
199 return part
200
201 parts = map(escape, self._to_args_list())
202 return ' '.join(parts)
203
204 def _to_args_list(self):
205 return list(map(str, self.cmd_prefix + [self.shell])) + self.args

Callers 6

_abortMethod · 0.95
__str__Method · 0.95
formatted_result_outputFunction · 0.45
on_test_resultMethod · 0.45
_test_recordMethod · 0.45
send_resultMethod · 0.45

Calls 3

_to_args_listMethod · 0.95
mapFunction · 0.50
joinMethod · 0.45

Tested by

no test coverage detected