MCPcopy Create free account
hub / github.com/Kitware/VTK / parse

Function parse

Utilities/Maintenance/parse_valgrind.py:50–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48supps_used = dict()
49
50def parse():
51 global sups, supps_used
52 insup = False
53 currentSup = ""
54 currentTest = ""
55 for line in file.readlines():
56 newtest = line.find("Testing: ")
57 if newtest > 0:
58 currentTest = line[newtest+8:].strip()
59 #print "NEXT TEST: ", currentTest
60 suppression_report = supp_report.match(line)
61 if suppression_report:
62 sname = suppression_report.group(2)
63 #print "USED SUP: ", sname
64 tests = (currentTest,)
65 if sname in supps_used:
66 tests = supps_used[sname]
67 tests = tests + (currentTest,)
68 supps_used[sname] = tests
69 if line[0] == "{":
70 insup = True
71 currentSup = currentSup + line
72 elif line[0] == "}":
73 currentSup = currentSup + line
74 #print "SUGGESTED SUP: ", currentSup
75 insup = False
76 tests = (currentTest,)
77 if currentSup in sups:
78 tests = sups[currentSup]
79 tests = tests + (currentTest,)
80 sups[currentSup] = tests
81 currentSup = ""
82 else:
83 if insup:
84 currentSup = currentSup + line
85
86parse()
87

Callers 1

parse_valgrind.pyFile · 0.70

Calls 3

findMethod · 0.45
matchMethod · 0.45
groupMethod · 0.45

Tested by

no test coverage detected