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

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

Issue 2707603002: [Predator] Generate all changelogs in regression ranges instead of only matched changelogs (Closed)
Patch Set: . Created 3 years, 10 months 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/top_frame_index_test.py
diff --git a/appengine/findit/crash/scorers/test/top_frame_index_test.py b/appengine/findit/crash/scorers/test/top_frame_index_test.py
deleted file mode 100644
index f5eaf7ad4bde70cedcf8ba77c82057b1d31bd67c..0000000000000000000000000000000000000000
--- a/appengine/findit/crash/scorers/test/top_frame_index_test.py
+++ /dev/null
@@ -1,34 +0,0 @@
-# Copyright 2016 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-from crash.stacktrace import StackFrame
-from crash.suspect import Suspect
-from crash.scorers.test.scorer_test_suite import ScorerTestSuite
-from crash.scorers.top_frame_index import TopFrameIndex
-
-
-class TopFrameIndexTest(ScorerTestSuite):
-
- def testGetMetric(self):
- suspect = Suspect(self._GetDummyChangeLog(), 'src/')
- self.assertEqual(TopFrameIndex().GetMetric(suspect), None)
-
- suspect.file_to_stack_infos = {
- 'a.cc': [(StackFrame(0, 'src/', '', 'func', 'a.cc', [7]), 0)]
- }
- self.assertEqual(TopFrameIndex().GetMetric(suspect), 0)
-
- def testScore(self):
- self.assertEqual(TopFrameIndex().Score(0), 1)
- self.assertEqual(TopFrameIndex().Score(30), 0)
-
- def testReason(self):
- self.assertEqual(TopFrameIndex().Reason(0, 1),
- ('TopFrameIndex', 1, 'Top frame is #0'))
- self.assertEqual(TopFrameIndex().Reason(30, 0),
- None)
-
- def testChangedFiles(self):
- suspect = Suspect(self._GetDummyChangeLog(), 'src/')
- self.assertEqual(TopFrameIndex().ChangedFiles(suspect, 1), None)
« no previous file with comments | « appengine/findit/crash/scorers/test/scorer_test_suite.py ('k') | appengine/findit/crash/scorers/top_frame_index.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698