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

Method GetAnnotationInfo

tools/test.py:321–329  ·  view source on GitHub ↗
(self, test, output)

Source from the content-addressed store, hash-verified

319 pass
320
321 def GetAnnotationInfo(self, test, output):
322 traceback = output.stdout + output.stderr
323 find_full_path = re.search(r' +at .*\(.*%s:([0-9]+):([0-9]+)' % test.file, traceback)
324 col = line = 0
325 if find_full_path:
326 line, col = map(int, find_full_path.groups())
327 root_path = abspath(join(dirname(__file__), '../')) + os.sep
328 filename = test.file.replace(root_path, "")
329 return filename, line, col
330
331 def PrintFailureOutput(self, failure):
332 output = self.GetFailureOutput(failure)

Callers 1

PrintFailureOutputMethod · 0.95

Calls 5

joinFunction · 0.90
dirnameFunction · 0.90
abspathFunction · 0.85
mapFunction · 0.50
searchMethod · 0.45

Tested by

no test coverage detected