| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 from crash.stacktrace import StackFrame | 5 from crash.stacktrace import StackFrame |
| 6 from crash.results import MatchResult | 6 from crash.suspect import Suspect |
| 7 from crash.scorers import aggregators | 7 from crash.scorers import aggregators |
| 8 from crash.scorers.min_distance import MinDistance | 8 from crash.scorers.min_distance import MinDistance |
| 9 from crash.scorers.test.scorer_test_suite import ScorerTestSuite | 9 from crash.scorers.test.scorer_test_suite import ScorerTestSuite |
| 10 from crash.scorers.top_frame_index import TopFrameIndex | 10 from crash.scorers.top_frame_index import TopFrameIndex |
| 11 | 11 |
| 12 | 12 |
| 13 class AggregatorsTest(ScorerTestSuite): | 13 class AggregatorsTest(ScorerTestSuite): |
| 14 | 14 |
| 15 def testMultiplier(self): | 15 def testMultiplier(self): |
| 16 aggregator = aggregators.Multiplier() | 16 aggregator = aggregators.Multiplier() |
| (...skipping 22 matching lines...) Expand all Loading... |
| 39 'info': 'scorer 2'}, | 39 'info': 'scorer 2'}, |
| 40 ], | 40 ], |
| 41 ] | 41 ] |
| 42 self.assertEqual(aggregator(file_info_list), | 42 self.assertEqual(aggregator(file_info_list), |
| 43 [{'file': 'f1.cc', 'blame_url': 'https://repo_url', | 43 [{'file': 'f1.cc', 'blame_url': 'https://repo_url', |
| 44 'info': 'scorer 1'}, | 44 'info': 'scorer 1'}, |
| 45 {'file': 'f2.cc', 'blame_url': 'https://repo_url', | 45 {'file': 'f2.cc', 'blame_url': 'https://repo_url', |
| 46 'info': 'scorer 1\nscorer 2'}]) | 46 'info': 'scorer 1\nscorer 2'}]) |
| 47 | 47 |
| 48 | 48 |
| OLD | NEW |