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

Method _parse_source_env

test/pseudo-tty/testcfg.py:94–101  ·  view source on GitHub ↗
(self, source)

Source from the content-addressed store, hash-verified

92 return False
93
94 def _parse_source_env(self, source):
95 env_match = ENV_PATTERN.search(source)
96 env = {}
97 if env_match:
98 for env_pair in env_match.group(1).strip().split():
99 var, value = env_pair.split('=')
100 env[var] = value
101 return env
102
103 def GetLabel(self):
104 return "%s %s" % (self.mode, self.GetName())

Callers 1

GetRunConfigurationMethod · 0.95

Calls 2

searchMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected