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

Unified Diff: appengine/findit/crash/scorers/test/aggregated_scorer_test.py

Issue 2449853012: [Predator] Fix bug in min_distance after refactor and add back skip added/deleted deps. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: appengine/findit/crash/scorers/test/aggregated_scorer_test.py
diff --git a/appengine/findit/crash/scorers/test/aggregated_scorer_test.py b/appengine/findit/crash/scorers/test/aggregated_scorer_test.py
index 5d88e65432a85f941b8f02de6787cc92a3e243ca..4efb3ff9f0db084b9695008840f8fff964ac057b 100644
--- a/appengine/findit/crash/scorers/test/aggregated_scorer_test.py
+++ b/appengine/findit/crash/scorers/test/aggregated_scorer_test.py
@@ -3,6 +3,7 @@
# found in the LICENSE file.
from crash.stacktrace import StackFrame
+from crash.results import AnalysisInfo
from crash.results import MatchResult
from crash.scorers import aggregators
from crash.scorers.aggregated_scorer import AggregatedScorer
@@ -21,10 +22,10 @@ class AggregatedScorerTest(ScorerTestSuite):
'a.cc': [(frame, 0)]
}
result.file_to_analysis_info = {
- 'a.cc': {
- 'min_distance': 0,
- 'min_distance_frame': frame
- }
+ 'a.cc': AnalysisInfo(
+ min_distance=0,
+ min_distance_frame=frame
+ )
}
aggregator = AggregatedScorer([TopFrameIndex(), MinDistance()])
@@ -47,10 +48,10 @@ class AggregatedScorerTest(ScorerTestSuite):
'a.cc': [(frame, 0)]
}
result.file_to_analysis_info = {
- 'a.cc': {
- 'min_distance': 0,
- 'min_distance_frame': frame
- }
+ 'a.cc': AnalysisInfo(
+ min_distance=0,
+ min_distance_frame=frame
+ )
}
aggregator = AggregatedScorer([TopFrameIndex(), MinDistance()])
« no previous file with comments | « appengine/findit/crash/scorers/min_distance.py ('k') | appengine/findit/crash/scorers/test/min_distance_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698