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

Function ArgsToTestPaths

tools/test.py:1612–1620  ·  view source on GitHub ↗
(test_root, args, suites)

Source from the content-addressed store, hash-verified

1610
1611
1612def ArgsToTestPaths(test_root, args, suites):
1613 if len(args) == 0 or 'default' in args:
1614 def_suites = [s for s in suites if s not in IGNORED_SUITES]
1615 args = [a for a in args if a != 'default'] + def_suites
1616 subsystem_regex = re.compile(r'^[a-zA-Z0-9-]*$')
1617 check = lambda arg: subsystem_regex.match(arg) and (arg not in suites)
1618 mapped_args = ["*/test*-%s-*" % arg if check(arg) else arg for arg in args]
1619 paths = [SplitPath(NormalizePath(a)) for a in mapped_args]
1620 return paths
1621
1622
1623def get_env_type(vm, options_type, context):

Callers 1

MainFunction · 0.85

Calls 5

SplitPathFunction · 0.85
NormalizePathFunction · 0.85
matchMethod · 0.65
checkFunction · 0.50
compileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…