コード例 #1
0
 def _AssertParseResult(self, expected_values, result_string):
   """Asserts some values are parsed from a RESULT line."""
   results_template = ('RESULT other_chart: other_trace= 123 count\n'
                       'RESULT my_chart: my_trace= %(value)s\n')
   results = results_template % {'value': result_string}
   metric = ['my_chart', 'my_trace']
   # Testing private function.
   # pylint: disable=W0212
   values = bisect_perf_regression._TryParseResultValuesFromOutput(
       metric, results)
   self.assertEqual(expected_values, values)
コード例 #2
0
 def _AssertParseResult(self, expected_values, result_string):
     """Asserts some values are parsed from a RESULT line."""
     results_template = ('RESULT other_chart: other_trace= 123 count\n'
                         'RESULT my_chart: my_trace= %(value)s\n')
     results = results_template % {'value': result_string}
     metric = ['my_chart', 'my_trace']
     # Testing private function.
     # pylint: disable=W0212
     values = bisect_perf_regression._TryParseResultValuesFromOutput(
         metric, results)
     self.assertEqual(expected_values, values)