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

Method _get_cmd_params

deps/v8/tools/testrunner/objects/testcase.py:388–400  ·  view source on GitHub ↗

Gets all command parameters and combines them in the following order: - files [empty by default] - all flags

(self)

Source from the content-addressed store, hash-verified

386 return self._create_cmd(ctx, shell_flags + params, env, timeout)
387
388 def _get_cmd_params(self):
389 """Gets all command parameters and combines them in the following order:
390 - files [empty by default]
391 - all flags
392 """
393 files = self._get_files_params()
394 flags = self.get_flags()
395 cwd = Path.cwd()
396 is_cwd_relative = lambda f: f.is_absolute() and f.is_relative_to(cwd)
397 make_relative = lambda f: Path(f).relative_to(cwd) if is_cwd_relative(
398 Path(f)) else f
399 relative_files = [make_relative(f) for f in files]
400 return relative_files + flags
401
402 def get_flags(self):
403 """Gets all flags and combines them in the following order:

Callers 1

get_commandMethod · 0.95

Calls 2

_get_files_paramsMethod · 0.95
get_flagsMethod · 0.95

Tested by

no test coverage detected