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

Method ListTests

test/pseudo-tty/testcfg.py:153–171  ·  view source on GitHub ↗
(self, current_path, path, arch, mode)

Source from the content-addressed store, hash-verified

151 return []
152
153 def ListTests(self, current_path, path, arch, mode):
154 all_tests = [current_path + [t] for t in self.Ls(self.root)]
155 result = []
156 # Skip these tests on Windows, as pseudo terminals are not available
157 if utils.IsWindows():
158 print ("Skipping pseudo-tty tests, as pseudo terminals are not available"
159 " on Windows.")
160 return result
161 for tst in all_tests:
162 if self.Contains(path, tst):
163 file_prefix = join(self.root, reduce(join, tst[1:], ""))
164 file_path = file_prefix + ".js"
165 input_path = file_prefix + ".in"
166 output_path = file_prefix + ".out"
167 if not exists(output_path):
168 raise Exception("Could not find %s" % output_path)
169 result.append(TTYTestCase(tst, file_path, output_path,
170 input_path, arch, mode, self.context, self))
171 return result
172
173 def GetBuildRequirements(self):
174 return ['sample', 'sample=shell']

Callers

nothing calls this directly

Calls 8

LsMethod · 0.95
joinFunction · 0.90
existsFunction · 0.85
TTYTestCaseClass · 0.85
printFunction · 0.50
reduceFunction · 0.50
ContainsMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected