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

Method GetRunConfiguration

test/pseudo-tty/testcfg.py:109–120  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

107 return self.path[-1]
108
109 def GetRunConfiguration(self):
110 result = [self.config.context.GetVm(self.arch, self.mode)]
111 source = open(self.file).read()
112 flags_match = FLAGS_PATTERN.search(source)
113 envs = self._parse_source_env(source)
114 if flags_match:
115 result += flags_match.group(1).strip().split()
116 result.append(self.file)
117 return {
118 'command': result,
119 'envs': envs
120 }
121
122 def GetSource(self):
123 return (open(self.file).read()

Callers

nothing calls this directly

Calls 7

_parse_source_envMethod · 0.95
GetVmMethod · 0.80
openFunction · 0.50
readMethod · 0.45
searchMethod · 0.45
splitMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected