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

Method _parse_source_env

test/testpy/__init__.py:54–61  ·  view source on GitHub ↗
(self, source)

Source from the content-addressed store, hash-verified

52 self.additional_flags = []
53
54 def _parse_source_env(self, source):
55 env_match = ENV_PATTERN.search(source)
56 env = {}
57 if env_match:
58 for env_pair in env_match.group(1).strip().split():
59 var, value = env_pair.split('=')
60 env[var] = value
61 return env
62
63 def GetLabel(self):
64 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