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

Method ListTests

tools/test.py:926–935  ·  view source on GitHub ↗
(self, current_path, path, context, arch, mode)

Source from the content-addressed store, hash-verified

924 return result
925
926 def ListTests(self, current_path, path, context, arch, mode):
927 (name, _rest) = CarCdr(path)
928 result = [ ]
929 for test in self.tests_repos:
930 test_name = test.GetName()
931 if not name or name.match(test_name):
932 full_path = current_path + [test_name]
933 test.AddTestsToList(result, full_path, path, context, arch, mode)
934 result.sort(key=lambda x: x.GetName())
935 return result
936
937 def GetTestStatus(self, context, sections, defs):
938 # Just read the test configuration from root_path/root.status.

Callers 2

MainFunction · 0.95
AddTestsToListMethod · 0.45

Calls 5

CarCdrFunction · 0.85
AddTestsToListMethod · 0.80
sortMethod · 0.80
matchMethod · 0.65
GetNameMethod · 0.45

Tested by

no test coverage detected