(paths)
| 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)) |
no test coverage detected