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

Method _parse_exception

deps/v8/tools/testrunner/outproc/test262.py:37–45  ·  view source on GitHub ↗
(self, string)

Source from the content-addressed store, hash-verified

35 return _is_failure_output(output, self._async)
36
37 def _parse_exception(self, string):
38 # somefile:somelinenumber: someerror[: sometext]
39 # somefile might include an optional drive letter on windows e.g. "e:".
40 match = re.search(
41 '^(?:\w:)?[^:]*:[0-9]+: ([^: ]+?)($|: )', string, re.MULTILINE)
42 if match:
43 return match.group(1).strip()
44 else:
45 return None
46
47
48class NoExceptionOutProc(base.OutProc):

Callers 1

_is_failure_outputMethod · 0.95

Calls 1

searchMethod · 0.45

Tested by

no test coverage detected