Lines Matching refs:output
65 def RemoveReportHeaderAndFooter(output): argument
68 output = re.sub(r'.*gtest_main.*\n', '', output)
69 output = re.sub(r'\[.*\d+ tests.*\n', '', output)
70 output = re.sub(r'\[.* test environment .*\n', '', output)
71 output = re.sub(r'\[=+\] \d+ tests .* ran.*', '', output)
72 output = re.sub(r'.* FAILED TESTS\n', '', output)
73 return output
76 def RemoveLocations(output): argument
89 return re.sub(r'.*[/\\](.+)(\:\d+|\(\d+\))\:', 'FILE:#:', output)
92 def NormalizeErrorMarker(output): argument
95 return re.sub(r' error: ', ' Failure\n', output)
98 def RemoveMemoryAddresses(output): argument
101 return re.sub(r'@\w+', '@0x#', output)
104 def RemoveTestNamesOfLeakedMocks(output): argument
107 return re.sub(r'\(used in test .+\) ', '', output)
110 def GetLeakyTests(output): argument
116 return re.findall(r'\(used in test (.+)\)', output)
119 def GetNormalizedOutputAndLeakyTests(output): argument
130 output = ToUnixLineEnding(output)
131 output = RemoveReportHeaderAndFooter(output)
132 output = NormalizeErrorMarker(output)
133 output = RemoveLocations(output)
134 output = RemoveMemoryAddresses(output)
135 return (RemoveTestNamesOfLeakedMocks(output), GetLeakyTests(output))
141 return gmock_test_utils.Subprocess(cmd, capture_stderr=False).output
158 (output, leaky_tests) = GetNormalizedCommandOutputAndLeakyTests(COMMAND)
164 self.assertEquals(golden, output)
175 (output, _) = GetNormalizedCommandOutputAndLeakyTests(COMMAND)
177 golden_file.write(output)