MCPcopy Create free account
hub / github.com/nodejs/node / _any_exist

Function _any_exist

deps/v8/tools/testrunner/local/statusfile.py:357–362  ·  view source on GitHub ↗
(paths)

Source from the content-addressed store, hash-verified

355 "Only the last character of a rule key can be a wildcard")
356 if basename in JS_TEST_PATHS and '*' not in rule:
357 def _any_exist(paths):
358 return any(
359 os.path.exists(
360 os.path.join(
361 os.path.dirname(path), *(paths + [rule + ext])))
362 for ext in test_extensions)
363 _assert(any(_any_exist(paths)
364 for paths in JS_TEST_PATHS[basename]),
365 "missing file for %s test %s" % (basename, rule))

Callers 1

PresubmitCheckFunction · 0.85

Calls 2

existsMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected