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

Method _parse_source_env

deps/v8/test/mjsunit/testcfg.py:113–120  ·  view source on GitHub ↗
(self, source)

Source from the content-addressed store, hash-verified

111 self._env = self._parse_source_env(source)
112
113 def _parse_source_env(self, source):
114 env_match = ENV_PATTERN.search(source)
115 env = {}
116 if env_match:
117 for env_pair in env_match.group(1).strip().split():
118 var, value = env_pair.split('=')
119 env[var] = value
120 return env
121
122 def _get_source_flags(self):
123 return self._source_flags

Callers 1

__init__Method · 0.95

Calls 2

searchMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected