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

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

Issue 1861373003: [Findit] Initial code of findit for crash. Add scorers to apply heuristic rules. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Fix nits and rebase Created 4 years, 8 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/scorer_test_suite.py
diff --git a/appengine/findit/crash/scorers/test/scorer_test_suite.py b/appengine/findit/crash/scorers/test/scorer_test_suite.py
new file mode 100644
index 0000000000000000000000000000000000000000..c8d031b1131470002681923607a723b25979a913
--- /dev/null
+++ b/appengine/findit/crash/scorers/test/scorer_test_suite.py
@@ -0,0 +1,37 @@
+# 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 common.change_log import ChangeLog
+
+from testing_utils import testing
+
+
+DUMMY_CHANGELOG = ChangeLog.FromDict({
+ 'author_name': 'r@chromium.org',
+ 'message': 'dummy',
+ 'committer_email': 'r@chromium.org',
+ 'commit_position': 175900,
+ 'author_email': 'r@chromium.org',
+ 'touched_files': [
+ {
+ 'change_type': 'add',
+ 'new_path': 'a.cc',
+ 'old_path': None,
+ },
+ ],
+ 'author_time': 'Thu Mar 31 21:24:43 2016',
+ 'committer_time': 'Thu Mar 31 21:28:39 2016',
+ 'commit_url':
+ 'https://repo.test/+/1',
+ 'code_review_url': 'https://codereview.chromium.org/3281',
+ 'committer_name': 'example@chromium.org',
+ 'revision': '1',
+ 'reverted_revision': None
+})
+
+
+class ScorerTestSuite(testing.AppengineTestCase): # pragma: no cover.
+
+ def _GetDummyChangeLog(self):
+ return DUMMY_CHANGELOG
« no previous file with comments | « appengine/findit/crash/scorers/test/min_distance_test.py ('k') | appengine/findit/crash/scorers/test/top_frame_index_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698