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

Side by Side Diff: pkg/analysis_server/test/src/plugin/result_merger_test.dart

Issue 2696853002: Extract object creation methods for use by a future test class (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 unified diff | Download patch
« no previous file with comments | « pkg/analysis_server/test/src/plugin/result_converter_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 import 'package:analysis_server/plugin/protocol/protocol.dart'; 5 import 'package:analysis_server/plugin/protocol/protocol.dart';
6 import 'package:analysis_server/src/plugin/result_merger.dart'; 6 import 'package:analysis_server/src/plugin/result_merger.dart';
7 import 'package:analyzer_plugin/protocol/protocol_generated.dart' as plugin; 7 import 'package:analyzer_plugin/protocol/protocol_generated.dart' as plugin;
8 import 'package:test/test.dart'; 8 import 'package:test/test.dart';
9 import 'package:test_reflective_loader/test_reflective_loader.dart'; 9 import 'package:test_reflective_loader/test_reflective_loader.dart';
10 10
11 main() { 11 main() {
12 /*
13 import 'result_merger_test.dart' as result_merger_test;
14 result_merger_test.main();
15 */
16 defineReflectiveSuite(() { 12 defineReflectiveSuite(() {
17 defineReflectiveTests(ResultMergerTest); 13 defineReflectiveTests(ResultMergerTest);
18 }); 14 });
19 } 15 }
20 16
21 @reflectiveTest 17 @reflectiveTest
22 class ResultMergerTest { 18 class ResultMergerTest {
23 // 19 //
24 // The tests in this class should always perform the merge operation twice 20 // The tests in this class should always perform the merge operation twice
25 // using the same input values in order to ensure that the input values are 21 // using the same input values in order to ensure that the input values are
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 } 730 }
735 731
736 void test_overlaps_true_onLeft() { 732 void test_overlaps_true_onLeft() {
737 expect(merger.overlaps(1, 5, 3, 7), isTrue); 733 expect(merger.overlaps(1, 5, 3, 7), isTrue);
738 } 734 }
739 735
740 void test_overlaps_true_onRight() { 736 void test_overlaps_true_onRight() {
741 expect(merger.overlaps(3, 7, 1, 5), isTrue); 737 expect(merger.overlaps(3, 7, 1, 5), isTrue);
742 } 738 }
743 } 739 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/src/plugin/result_converter_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698