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

Function NormalizePath

tools/test.py:1541–1551  ·  view source on GitHub ↗
(path, prefix='test/')

Source from the content-addressed store, hash-verified

1539 return [Pattern(s) for s in stripped if len(s) > 0]
1540
1541def NormalizePath(path, prefix='test/'):
1542 # strip the extra path information of the specified test
1543 prefix = prefix.replace('\\', '/')
1544 path = path.replace('\\', '/')
1545 if path.startswith(prefix):
1546 path = path[len(prefix):]
1547 if path.endswith('.js'):
1548 path = path[:-3]
1549 elif path.endswith('.mjs'):
1550 path = path[:-4]
1551 return path
1552
1553def GetSpecialCommandProcessor(value):
1554 if (not value) or (value.find('@') == -1):

Callers 4

HasRunMethod · 0.85
HasRunMethod · 0.85
ContainsMethod · 0.85
ArgsToTestPathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…