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

Method ListTests

test/message/testcfg.py:135–146  ·  view source on GitHub ↗
(self, current_path, path, arch, mode)

Source from the content-addressed store, hash-verified

133 return []
134
135 def ListTests(self, current_path, path, arch, mode):
136 all_tests = [current_path + [t] for t in self.Ls(self.root)]
137 result = []
138 for tst in all_tests:
139 if self.Contains(path, tst):
140 file_path = join(self.root, reduce(join, tst[1:], ''))
141 output_path = file_path[:file_path.rfind('.')] + '.out'
142 if not exists(output_path):
143 raise Exception("Could not find %s" % output_path)
144 result.append(MessageTestCase(tst, file_path, output_path,
145 arch, mode, self.context, self))
146 return result
147
148 def GetBuildRequirements(self):
149 return ['sample', 'sample=shell']

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected