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

Method Ls

test/testpy/__init__.py:171–179  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

169 super(AddonTestConfiguration, self).__init__(context, root, section, additional)
170
171 def Ls(self, path):
172 def SelectTest(name):
173 return name.endswith('.js')
174
175 result = []
176 for subpath in os.listdir(path):
177 if os.path.isdir(os.path.join(path, subpath)):
178 result.extend([subpath, f[:-3]] for f in os.listdir(os.path.join(path, subpath)) if SelectTest(f))
179 return result
180
181 def ListTests(self, current_path, path, arch, mode):
182 all_tests = [current_path + t for t in self.Ls(os.path.join(self.root))]

Callers 1

ListTestsMethod · 0.95

Calls 2

joinMethod · 0.45
extendMethod · 0.45

Tested by

no test coverage detected