| Index: appengine/findit/crash/scorers/test/aggregator_test.py
|
| diff --git a/appengine/findit/crash/scorers/test/aggregator_test.py b/appengine/findit/crash/scorers/test/aggregator_test.py
|
| deleted file mode 100644
|
| index b36621ac6061fa6e7dfcc6f6c1947bf7d65ef39e..0000000000000000000000000000000000000000
|
| --- a/appengine/findit/crash/scorers/test/aggregator_test.py
|
| +++ /dev/null
|
| @@ -1,29 +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.callstack import StackFrame
|
| -from crash.results import MatchResult
|
| -from crash.scorers.aggregator import Aggregator
|
| -from crash.scorers.min_distance import MinDistance
|
| -from crash.scorers.test.scorer_test_suite import ScorerTestSuite
|
| -from crash.scorers.top_frame_index import TopFrameIndex
|
| -
|
| -
|
| -class AggregatorTest(ScorerTestSuite):
|
| -
|
| - def testScoreAndReason(self):
|
| - result = MatchResult(self._GetDummyChangeLog(), 'src/', '')
|
| - result.file_to_stack_infos = {
|
| - 'a.cc': [(StackFrame(0, 'src/', 'func', 'a.cc', 'src/a.cc', [7]), 0)]
|
| - }
|
| - result.min_distance = 0
|
| -
|
| - aggregator = Aggregator([TopFrameIndex(), MinDistance()])
|
| - aggregator.ScoreAndReason(result)
|
| -
|
| - self.assertEqual(result.confidence, 1)
|
| - self.assertEqual(result.reason,
|
| - ('(1) Modified top crashing frame is #0\n'
|
| - '(2) Modification distance (LOC) is 0\n\n'
|
| - 'Changed file a.cc crashed in frame #0'))
|
|
|