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

Method ListTests

test/testpy/__init__.py:141–150  ·  view source on GitHub ↗
(self, current_path, path, arch, mode)

Source from the content-addressed store, hash-verified

139 return [f for f in os.listdir(path) if LS_RE.match(f)]
140
141 def ListTests(self, current_path, path, arch, mode):
142 all_tests = [current_path + [t] for t in self.Ls(os.path.join(self.root))]
143 result = []
144 for tst in all_tests:
145 if self.Contains(path, tst):
146 file_path = os.path.join(self.root, reduce(os.path.join, tst[1:], ""))
147 test_name = tst[:-1] + [os.path.splitext(tst[-1])[0]]
148 result.append(SimpleTestCase(test_name, file_path, arch, mode,
149 self.context, self, self.additional_flags))
150 return result
151
152 def GetBuildRequirements(self):
153 return ['sample', 'sample=shell']

Callers

nothing calls this directly

Calls 6

LsMethod · 0.95
SimpleTestCaseClass · 0.85
reduceFunction · 0.50
joinMethod · 0.45
ContainsMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected