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

Method __init__

deps/v8/test/mjsunit/testcfg.py:79–111  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

77
78class TestCase(testcase.D8TestCase):
79 def __init__(self, *args, **kwargs):
80 super(TestCase, self).__init__(*args, **kwargs)
81
82 source = self.get_source()
83
84 files_list = [] # List of file names to append to command arguments.
85 files_match = FILES_PATTERN.search(source)
86 # Accept several lines of 'Files:'.
87 while True:
88 if files_match:
89 files_list += files_match.group(1).strip().split()
90 files_match = FILES_PATTERN.search(source, files_match.end())
91 else:
92 break
93 files = [
94 os.path.normpath(os.path.join(self.suite.root, '..', '..', f))
95 for f in files_list
96 ]
97 testfilename = str(self._get_source_path())
98
99 if NO_HARNESS_PATTERN.search(source):
100 mjsunit_files = []
101 else:
102 mjsunit_files = [self.suite.root / "mjsunit.js"]
103
104 if self.framework_name == 'num_fuzzer':
105 mjsunit_files.append(self.suite.root / "mjsunit_numfuzz.js")
106
107 self._source_files = files
108 self._source_flags = self._parse_source_flags(source)
109 self._mjsunit_files = mjsunit_files
110 self._files_suffix = [testfilename]
111 self._env = self._parse_source_env(source)
112
113 def _parse_source_env(self, source):
114 env_match = ENV_PATTERN.search(source)

Callers 1

__init__Method · 0.45

Calls 10

get_sourceMethod · 0.95
_get_source_pathMethod · 0.95
_parse_source_flagsMethod · 0.95
_parse_source_envMethod · 0.95
strFunction · 0.85
searchMethod · 0.45
splitMethod · 0.45
endMethod · 0.45
joinMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected