Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(810)

Side by Side Diff: appengine/findit/crash/scorers/test/aggregators_test.py

Issue 2588513002: [Predator] renamed "Result" to "Suspect" (Closed)
Patch Set: Removing redundant import Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698