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

Method GetRunConfiguration

test/message/testcfg.py:108–119  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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