| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library test.services.src.search.search_engine; | 8 library test.services.src.search.search_engine; |
| 9 | 9 |
| 10 import 'dart:async'; | 10 import 'dart:async'; |
| 11 | 11 |
| 12 import 'package:analysis_services/index/index.dart'; | 12 import 'package:analysis_services/index/index.dart'; |
| 13 import 'package:analysis_services/index/local_memory_index.dart'; | 13 import 'package:analysis_services/index/local_memory_index.dart'; |
| 14 import 'package:analysis_services/search/search_engine.dart'; | 14 import 'package:analysis_services/search/search_engine.dart'; |
| 15 import 'package:analysis_services/src/search/search_engine.dart'; | 15 import 'package:analysis_services/src/search/search_engine.dart'; |
| 16 import 'package:analysis_testing/abstract_single_unit.dart'; |
| 16 import 'package:analysis_testing/mocks.dart'; | 17 import 'package:analysis_testing/mocks.dart'; |
| 17 import 'package:analysis_testing/reflective_tests.dart'; | 18 import 'package:analysis_testing/reflective_tests.dart'; |
| 18 import 'package:analyzer/src/generated/element.dart'; | 19 import 'package:analyzer/src/generated/element.dart'; |
| 19 import 'package:analyzer/src/generated/source.dart'; | 20 import 'package:analyzer/src/generated/source.dart'; |
| 20 import 'package:typed_mock/typed_mock.dart'; | 21 import 'package:typed_mock/typed_mock.dart'; |
| 21 import 'package:unittest/unittest.dart'; | 22 import 'package:unittest/unittest.dart'; |
| 22 | 23 |
| 23 import '../index/abstract_single_unit.dart'; | |
| 24 | |
| 25 | 24 |
| 26 main() { | 25 main() { |
| 27 groupSep = ' | '; | 26 groupSep = ' | '; |
| 28 group('SearchEngineImplTest', () { | 27 group('SearchEngineImplTest', () { |
| 29 runReflectiveTests(SearchEngineImplTest); | 28 runReflectiveTests(SearchEngineImplTest); |
| 30 }); | 29 }); |
| 31 } | 30 } |
| 32 | 31 |
| 33 class ExpectedMatch { | 32 class ExpectedMatch { |
| 34 final Element element; | 33 final Element element; |
| (...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 pattern).then((List<SearchMatch> matches) { | 648 pattern).then((List<SearchMatch> matches) { |
| 650 _assertMatches(matches, expectedMatches); | 649 _assertMatches(matches, expectedMatches); |
| 651 }); | 650 }); |
| 652 } | 651 } |
| 653 | 652 |
| 654 static void _assertMatches(List<SearchMatch> matches, | 653 static void _assertMatches(List<SearchMatch> matches, |
| 655 List<ExpectedMatch> expectedMatches) { | 654 List<ExpectedMatch> expectedMatches) { |
| 656 expect(matches, unorderedEquals(expectedMatches)); | 655 expect(matches, unorderedEquals(expectedMatches)); |
| 657 } | 656 } |
| 658 } | 657 } |
| OLD | NEW |