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

Method _parse_source_env

test/message/testcfg.py:93–100  ·  view source on GitHub ↗
(self, source)

Source from the content-addressed store, hash-verified

91 return False
92
93 def _parse_source_env(self, source):
94 env_match = ENV_PATTERN.search(source)
95 env = {}
96 if env_match:
97 for env_pair in env_match.group(1).strip().split():
98 var, value = env_pair.split('=')
99 env[var] = value
100 return env
101
102 def GetLabel(self):
103 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